Alice and Bob play the following game: Alice writes a strictly positive integer on the board. On each of his turns, Bob chooses an integer , and replaces the integer written on the board with . On each of her turns, Alice chooses an integer , and replaces the integer with . Bob starts: he wins if after a finite number of turns, he manages to write 0 on the board, otherwise Alice wins. Which of the two players has a winning strategy?
Problem 1139
Official solution
Here a good idea is to decompose any strictly positive integer as a square times a squarefree number: we replace each -adic valuation of by the smallest even integer less than or equal to it to obtain a square denoted which divides and such that is squarefree. Moreover, this decomposition is unique: if with and squarefree, we have for all prime , so since and are squarefree, and . We will now denote for all its squarefree part.
Here, if is written on the board, Alice's moves can either transform into 1 if is even, or leave it as if is odd because , and the number will always remain strictly positive. Therefore, Bob needs to manage to reduce the squarefree part of the number written (and keep the number strictly positive: thus after a finite number of turns, the squarefree part will be 1, and the number will be a square, allowing Bob to simply remove the number itself. For this, if is written on the board, with its squarefree part and (otherwise Bob wins directly by removing ), Bob can remove and obtain whose squarefree part is therefore , which concludes.