Browse · MathNet
Print70th NMO SELECTION TESTS FOR THE JUNIOR BALKAN MATHEMATICAL OLYMPIAD
Romania counting and probability
Problem
Ana and Bogdan play the following turn based game: Ana starts with a pile of () stones. At his turn each player has to split one pile. The winner is the player who can make at his turn all the piles to have at most two stones. Depending on , determine which player has a winning strategy.
Solution
If or Ana wins at her first move. If is odd, greater than 3, Bogdan will win. In this case, Ana has to start by making a pile with an even number of stones. Bogdan will split this pile into a pile with one stone and the rest into an odd pile. Ana has to make an even pile again and Bogdan continues his strategy unless he can win. The game may end in two different ways. If Ana leaves a pile of 2, one of 3 and the rest of 1, Bogdan will win by splitting the pile with 3 stones. If Ana leaves a pile of 4 and the rest of 1, Bogdan wins by splitting the 4-pile into two piles of 2 stones.
If is even, then Ana will split the pile in 1 and and continue with the strategy described for Bogdan above. So, in this case, Ana will win.
---
Alternative solution.
For even, Ana splits the pile into two equal piles. Then, after Bogdan's move into one pile, she will make the same move in the other pile. This strategy will end up with Ana winning.
For odd, we prove by induction that Bogdan wins by always leaving an even number of piles with 2 stones. We verify the cases . For odd , we have two situations. If Ana splits , with odd, Bogdan will split the pile with stones into two equal piles. If Ana moves in one of the equal piles, Bogdan will make the same move in the other pile. If Ana moves in the odd pile, Bogdan will follow the strategy provided by the induction hypothesis to end up with piles of 1 stone and an even number of piles of 2 stones. Ana might still be able to move in a pile of 2, but whenever she splits a pile of 2, so will Bogdan, leaving an even number of piles of 2 stones. If , Bogdan will split , where , and apply the same strategy as above.
If is even, then Ana will split the pile in 1 and and continue with the strategy described for Bogdan above. So, in this case, Ana will win.
---
Alternative solution.
For even, Ana splits the pile into two equal piles. Then, after Bogdan's move into one pile, she will make the same move in the other pile. This strategy will end up with Ana winning.
For odd, we prove by induction that Bogdan wins by always leaving an even number of piles with 2 stones. We verify the cases . For odd , we have two situations. If Ana splits , with odd, Bogdan will split the pile with stones into two equal piles. If Ana moves in one of the equal piles, Bogdan will make the same move in the other pile. If Ana moves in the odd pile, Bogdan will follow the strategy provided by the induction hypothesis to end up with piles of 1 stone and an even number of piles of 2 stones. Ana might still be able to move in a pile of 2, but whenever she splits a pile of 2, so will Bogdan, leaving an even number of piles of 2 stones. If , Bogdan will split , where , and apply the same strategy as above.
Final answer
Ana wins for n = 3 and for all even n; Bogdan wins for all odd n ≥ 5.
Techniques
Games / greedy algorithmsInvariants / monovariantsInduction / smoothing