Tessellate S.T.E.M.S - Computer Science - School - Set 2 - Problem 2

A teacher sits down two students, Alice and Bob facing each other. The teacher picks a natural number, n n , possibly 0 0 , and writes n n on one of their foreheads and n + 1 n+1 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:

  1. The teacher is truthful, and so are the students.
  2. The students are both perfectly logical, which means that if there is an inference that can be drawn from the information present in the current context, they will infer it.
  3. It is common knowledge that the students are perfectly logical.

This problem is a part of Tessellate S.T.E.M.S.

Cannot be determined, Bob Cannot be determined, Alice 2, Cannot be determined 2, Alice 2, Bob

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.

1 solution

Ong Zi Qian
Jan 2, 2018

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.

What if n=11?

Aashir shukla - 3 years, 4 months ago

Log in to reply

Then they need to repeat the phrase I for ten times.

Ong Zi Qian - 3 years, 4 months ago

Log in to reply

Ah. I misunderstood the question

Aashir shukla - 3 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...