MathDB
2000 Advanced Topics #10: Figuring Each Other's Numbers

Source:

June 21, 2012

Problem Statement

I call two people AA and BB and think of a natural number nn. Then I give the number nn to AA and the number n+1n+1 to BB. I tell them that they have both been given natural numbers, and further that they are consecutive natural numbers. However, I don't tell AA what BB's number is and vice versa. I start by asing AA if he knows BB's number. He says "no", Then I ask BB if he knows AA's number, and he says "no" too. I go back to AA and ask, and so on. AA and BB can both hear each other's responses. Do I ever get a "yes" in response? If so, who responds first with "yes" and how many times does he say "no" before this? Assume that both AA and BB are very intelligent and logical. You may need to consider multiple cases.