A teacher sits down two students, Alice and Bob facing each other. The teacher picks a natural number, , possibly , and writes on one of their foreheads and on the forehead of the other.
Each student can see the forehead of the other student, but not their own. They have the following dialogue with the teacher, in three phases.
Phase I
Teacher: Do you know the numbers on your corresponding foreheads?
Alice and Bob (simultaneuosly): No
Phase II
Teacher: Do you now know the numbers on your corresponding foreheads?
Alice and Bob (simultaneuosly): No
Phase III
Teacher: Do you now know the numbers on your corresponding foreheads?
Alice: Yes
Bob (simultaneuosly with Alice): No
What is the lower of the two numbers written on their foreheads, and whose forehead is it written on?
Assume that:
This problem is a part of Tessellate S.T.E.M.S.
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.
If one of the number is 0, the other person can know his number is 1 immediately and answer "yes" in Phase I.
Since there is no 0, if one of the number is 1, the other person can know his number is 2 immediately and answer "yes" in Phase II.
Since there is no 1, if one of the number is 2, the other person can know his number is 3 immediately and answer "yes" in Phase III.
In Phase III, Alice answered "yes". Therefore, Bob's number is 2 and Alice's number is 3.
Therefore, the lower of the two numbers written on their foreheads is 2, and it is written on Bob's forehead.