Aino and Väinö start to play the game GCD() where and are positive integers. In the beginning there are two piles of stones on the table, one with stones, another with stones. The one whose turn it is, takes away a number of stones from one of the piles. This number is a multiple of the number of stones in the other pile. Aino starts, and the players take turns until one of the piles is empty. The one who manages to empty a pile, wins. Prove that there is an such that if and are positive integers with , then Aino has a winning strategy in the game GCD(), whereas if Väinö has.
, 2011
Solution
Choose , so that holds. We prove by induction on the sum that if , then Aino has a winning strategy in GCD(), otherwise if , then Väinö has.
1) If , then Aino can remove all of the stones from the pile with stones, thus winning. This includes the initial step of the induction.
2) Assume . Note that is irrational, so . The rules of the game actually force Aino to remove stones from the larger pile. As , there is no choice: she has to take exactly stones. The play continues with and stones in the piles, Väinö having the turn. We have and
By induction, Aino has a winning strategy in the game GCD(), but now the turns have switched. Hence, Väinö has a winning strategy that mimicks this winning strategy of Aino's.
3) Finally assume , but . Write and . Then with , as . If (note that and ), then , as . Therefore, Aino may take stones out of the pile of stones, leaving there stones. By induction hypothesis, Väinö has a winning strategy in the game n), which will now be copied by Aino in order to win the game. Otherwise, if , then Aino may take stones, leaving stones in the heap. Again, Väinö's winning strategy in the game GCD() is copied by Aino. It suffices to check that