Skip to main content
OlympiadHQ

Browse · MathNet

Print

MMO2025 Round 4

Mongolia 2025 counting and probability

Problem

Let . Two players take turns extending a sequence by the following rules: On the -th move, the player chooses or , where denotes the sum of the digits of . The game ends when either three identical numbers appear in the sequence, or four consecutive terms form an arithmetic progression. The player who makes the final move (i.e., causes the game to end) wins. Assuming both players play optimally, determine which player has a winning strategy. (Batbayasgalan Balkhuu)
Solution
Answer: Player 1 has a winning strategy for all initial values, including . Let us consider small values of .

Case 1: . To avoid repeating a number three times, each player must choose . Then player 1 can increment three times in a row: which forms an arithmetic progression of length 4, ending the game with a win for player 1.

Case 2: . If player 1 plays , then: - If player 2 plays , player 1 responds with and wins via arithmetic progression. - If player 2 instead plays , the position reduces to the previously analyzed case , where player 1 also wins.

Case 3: . We claim that using the digit sum operation leads to losing positions. Note that for , we always have Hence, each application of strictly decreases the value by at least 9, eventually reducing to a single-digit number, which as previously shown results in a loss for the player making that move. Therefore, under optimal play, both players avoid using and only apply . Then, player 1 forces: , forming an arithmetic progression of length 4, thereby winning.
Final answer
Player 1

Techniques

Games / greedy algorithmsInvariants / monovariants