0
   

Impossible Riddle!

 
 
jluke99
 
Reply Sat 16 May, 2015 09:50 am
Chocolate Easter eggs come in packages of 6,9, and 20. What is the largest number of Easter Eggs that the Easter Bunny CANNOT buy? (Ex. Easter bunny cannot buy 22 eggs)
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 938 • Replies: 3

 
View best answer, chosen by jluke99
Kolyo
  Selected Answer
 
  3  
Reply Sat 16 May, 2015 10:33 am
@jluke99,
I think it's 43.
Olivier5
 
  1  
Reply Sat 16 May, 2015 10:51 am
@Kolyo,
Indeed.
0 Replies
 
Xeridanus
 
  1  
Reply Sun 17 May, 2015 03:17 am
@jluke99,
Code:results = dict(zip(range(1000), [True]*1000))

for x in range(int(1000/6)):
tempList = [x*6, x*6+9, x*6+20, x*6+9+20, x*6+20+20, x*6+9+20+20]
for each in tempList:
if each in results:
del results[each]

for number in results.keys():
print(number)


This python script proves that it is in fact 43. I'm assuming the highest possible number is less than 1000, it works by starting with a list of numbers from 0-999 and eliminating them if they are a multiple of 6 or if they are 9, 20, 29, 40 or 49 away from a multiple of 6. The reason I use those numbers is that they are made up of 0 or 1 9 and 0 to 2 20's. This is because 2 9's is 18, which is only 3 (18/6 = 3) iterations away and 3 20's is 60, only 10 iterations away and therefore already accounted for by the sequence of multiples of 6's.
0 Replies
 
 

Related Topics

Alternative Einstein's riddle answer - Discussion by cedor
Urgent !!! Puzzle / Riddle...Plz helpp - Question by zuzusheryl
Bottle - Question by Megha
"The World's Hardest Riddle" - Discussion by maxlovesmarie
Hard Riddle - Question by retsgned
Riddle Time - Question by Teddy Isaiah
riddle me this (easy) - Question by gree012
Riddle - Question by georgio7
Trick Question I think! - Question by sophocles
Answer my riddle - Question by DanDMan52
 
  1. Forums
  2. » Impossible Riddle!
Copyright © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 10/15/2019 at 01:12:41