The problem statement:
I have two people A and B, and think of a natural number n. Then I give the number n to A and the number n + 1 to B. I tell them that they have both been given natural numbers, and further that they are consecutive natural numbers. However, I don't tell A what B's number is and vie versa. I start by asking A if he knows B's number. He says \no". Then I ask B if he knows A's number, and he says \no" too. I go bak to A and ask, and so on. A and B an 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 A and B are very intelligent and logical.
I understand we should start from a simple case where $A = 1$, and $B = 2$ ---- obviously number of "no" from $A$ is $0$.
Then for $A = 2, B = 3$ case, $A$ responds with "no" because $B$ could be $1$ or $3$, then $B$ responds with "no", so $A$ knows $B$ is not $1$, then in the second respond he says "yes".
So on and so forth.
However, it's not clear to me how should I extend the case to $n$ and $n+1$? Maybe better to have a recursive relation between $(n,n+1)$ and $(n-1,n)$ case?