3. On the board, an integer is written. Two players and take turns, starting with . Each player, on their turn, replaces the existing number with the result of one of these two operations: subtract 1 or divide by 2, provided the result is a positive integer. The player who reaches the number 1 wins. Determine, with reasoning, the smallest even number that requires to play at least 2015 times to win (B's turns are not counted).
Problem 923
Official solution
Solution. If the initial value of is even, let's see that A wins: by either subtracting 1 or dividing by 2 (in the case odd), A will always leave B with an odd number, forcing B to subtract 1 as division by 2 is not possible, which means that when A plays again, they will encounter an even number, smaller than the previous one. Thus, A will eventually encounter a 2, and win.
It is important to note that when A has two valid options to leave B with an odd number, A will always prefer to divide by 2, to get closer to the goal more quickly.
Next, we will use the following result:
Let be an even number that A encounters on their turn. Then, two turns before, A was with a number greater than or equal to .
Indeed, we will distinguish two cases: (1) Case . It comes from a forced move of B from . Before that, A could have been in , or (this is viable, since from A cannot divide because is even). That is, B was in or before. If B was in , A could have been in or , while if B was in , A could only have been in , not in , because in that case A would have preferred to divide instead of subtracting. In summary, if , two turns before, A could have been in or , with the smallest option being just .
(2) Case . Reasoning similarly, it is deduced that two turns before, A was in or
The solution to the problem will be obtained by repeatedly applying the above result.
We define the sequence , whose explicit formula is
By repeatedly applying the result, we see that for all , any from which one can reach 2 in turns must satisfy . That is, counting that A goes from 2 to 1 in one turn, we have proved that for all , the numbers that require at least moves from A satisfy .
Since for we have , it follows that is greater than or equal to the term of the considered sequence, that is, the number . It remains to prove that equality can be achieved. For this, it is enough to see that for all , if A encounters , after two turns they will be in . Indeed,