Albert and Bernard just became friends with Cheryl, and they want to know when her birthday is. Cheryl gives them two unknowns: and
is the month of Cheryl's birthday (1-12)
is the day of Cheryl's birthday.
Cheryl then tells Albert the sum and she tells Bernard the product .
Albert: "I don't know when Cheryl's birthday is, but I know that Bernard does not know too."
Bernard: "I could not figure out when Cheryl's birthday is, but I can now."
Albert: "Then I also figured out when Cheryl's birthday is."
What is the earliest Cheryl's birthday could be?
Input the month and day concatenated; e.g. September 14th is 914
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Consider prime numbers p E {17, 19, 23, 29, 31}. Albert's number cannot be p+1, because he will need to consider the possibility of Bertrand's number being p, which automatically causes him to know without clue that the date is p January. Albert's number cannot be p+k, with k E {2, 3, ..., 12}, because 12< p and 2p > 31. If Albert's number is p+k, he will need to consider the possibility of Bertrand's number being kp. p can only be a prime factor of the date, as p>12. And as 2p > 31, the only possibility is that Bertrand will know without clue that the birthday is date p month k. Now we only have number 2-17 for Albert's number. However, since they both eventually know the number, Albert's number cannot be odd number less than 14. If Albert's number is odd and less than 14, they will have no mean to differentiate which one is the date and which one is the month, since both the date and month are different and are at most 12. Albert's number cannot be 14, as he will need to consider possibility of Bertrand's number being 13, which lets him know the birthday without a clue. Albert's number cannot be 16, as he will need to consider possibility of Bertrand's number being 39, which lets bertrand know without a clue that the birthday is March 13th.
Now Albert's number can only be 2, 4, 6, 8, 10, 12, 15, 17. If Albert's number is less than 13, the only way both can tell the number is if date=month
Albert's number cannot be 2, as he will know right away the birthday
Albert's number cannot be 4, as the birthday will cause Bertrand's number to become 4, which will leave him confused between 2.2 and 4.1 even with Albert telling him that he doesn't know the number and he knows Bertrand doesn't know the number.
Albert's number cannot be 6, as the birthdate will left Bertrand confused between possibility of 3.3 and 9.1,even with Albert telling him that he doesn't know the number and he knows Bertrand doesn't know the number. Albert's number cannot be 8, as Bertrand will be confused between 1.16, 2.8, or 4.4 even with Albert telling him that he doesn't know the number and he knows Bertrand doesn't know the number. Albert's number can be 10. Bertrand will at first be confused between 25.1 and 5.5, but he will find out the birthday after Albert tells him that he knows Bertrand doesn't know (which signifies that Albert's number is less than 18), and Albert finds out soon that the date equals the month (by knowing that Bertrand can determine the date after getting information).
Albert's number cannot be 12, as 6 june as the date will make Bertrand still confused with choices of 12.3, 4.9, and 6.6 even with Albert telling him that he doesn't know the number and he knows Bertrand doesn't know the number.
If Albert's number is 15, Bertrand's number can be 56 (Bertrand needs to choose between 2.28, 4.14 or 8.7), 54 (Bertrand's choice: 2.27, 6.9, 18.3), 50 (2.25, 5.10), 44 (2.22, 4.11), 36 (2.18, 3.12, 4.9, 6.6), 26 (1.26, 2.13), or 14 (1.14, 2.7). Among them, the only possibility that lets Bertrand know the exact birthday after being told that Albert's number is less than 18, while still able to differentiate date and month is if Bertrand's number is 26, which gives answer of 13 february.
If Albert's number is 17, Bertrand's number can be 16 (1.16 or 4.4), 30 (1.30, 2.15, 3.10, 5.6), 42 (2.21, 3.14, 6.7), 52 (2.26, 4.13), 60 (2.30, 3.20, 4.15, 5.12, 6.10), 66 (6.11, 22.3). Among them, the only possibility that lets Bertrand know the exact birthday after being told that Albert's number is less than 18, while still able to differentiate date and month is if Bertrand's number is 52, which gives answer of April 13th
Answer: 13 february, 13 april, 5 May