Maths Olympiad Prep

Library / /16 of 17

Combinatorics Difficulty 7.4 National olympiad, round 2 Prove it Mongolia

Let a0=22025a_0 = 2^{2025}. Two players take turns extending a sequence a0,a1,a2,a_0, a_1, a_2, \dots by the following rules:
On the nn-th move, the player chooses an=an1+1a_n = a_{n-1} + 1 or an=S(an1)a_n = S(a_{n-1}), where S(x)S(x) denotes the sum of the digits of xx.
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 a0=22025a_0 = 2^{2025}.
Let us consider small values of a0a_0.

Case 1: a08a_0 \le 8. To avoid repeating a number three times, each player must choose an=an1+1a_n = a_{n-1} + 1. Then player 1 can increment three times in a row:
a0,a0+1,a0+2,a0+3, a_0, a_0 + 1, a_0 + 2, a_0 + 3,
which forms an arithmetic progression of length 4, ending the game with a win for player 1.

Case 2: a0=9a_0 = 9. If player 1 plays a1=10a_1 = 10, then:
- If player 2 plays a2=11a_2 = 11, player 1 responds with a3=12a_3 = 12 and wins via arithmetic progression.
- If player 2 instead plays a2=S(10)=1a_2 = S(10) = 1, the position reduces to the previously analyzed case a0=1a_0 = 1, where player 1 also wins.

Case 3: a010a_0 \ge 10. We claim that using the digit sum operation S(a)S(a) leads to losing positions. Note that for a10a \ge 10, we always have
S(a)a9. S(a) \le a - 9.
Hence, each application of SS 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 SS and only apply an=an1+1a_n = a_{n-1} + 1. Then, player 1 forces: a0,a0+1,a0+2,a0+3a_0, a_0 + 1, a_0 + 2, a_0 + 3, forming an arithmetic progression of length 4, thereby winning.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.