Maths Olympiad Prep

Library / Taiwan IMO Selection Camp /316 of 359

Taiwan IMO Selection Camp, 2022

Number theory Difficulty 6.9 National Olympiad Prove it Taiwan

Alice is given a rational number r>1r > 1 and a line, on which there are two points B≠RB \neq R, with a red bead placed at RR and a blue bead placed at BB. Alice uses these to play a solitaire game. On each turn, she selects an integer kk (not necessarily positive) and a bead to move. If this bead is at position XX, and the other bead is at position YY, then Alice moves the selected bead to a position X′X' such that YX′→=rkYX→\overrightarrow{YX'} = r^k \overrightarrow{YX}. Alice's goal is to move the red bead onto BB. Find all rational numbers r>1r > 1 for which Alice can accomplish her goal within 2021 turns.

Solution

All r=(b+1)/br = (b+1)/b with b=1,…,1010b = 1, \dots, 1010.

Denote the red and blue beads by R\mathcal{R} and B\mathcal{B}, respectively. Introduce coordinates on the line and identify the points with their coordinates so that R=0R = 0 and B=1B = 1. Then, during the game, the coordinate R\mathcal{R} is always smaller than the coordinate of B\mathcal{B}. Moreover, the distance between the beads always has the form rℓr^\ell with ℓ∈Z\ell \in \mathbb{Z}, since it only multiplies by the numbers of this form. Denote the value of the distance after the mthm^{\text{th}} move by dm=rαmd_m = r^{\alpha_m}, m=0,1,2,…m = 0, 1, 2, \dots (after the 0th0^{\text{th}} move we have just the initial position, so α0=0\alpha_0 = 0).

If some bead is moved in two consecutive moves, then Alice could instead perform a single move (and change the distance from did_i directly to di+2d_{i+2}) which has the same effect as these two moves. So, if Alice can achieve her goal, then she may as well achieve it in fewer (or the same) number of moves by alternating the moves of B\mathcal{B} and R\mathcal{R}. In the sequel, we assume that Alice alternates the moves, and that R\mathcal{R} is shifted altogether tt times.

If R\mathcal{R} is shifted in the mthm^{\text{th}} move, then its coordinate increases by dm−dm−1d_m - d_{m-1}. Therefore, the total increment of R\mathcal{R}'s coordinate, which should be 1, equals
either(d0−d1)+(d2−d3)+⋯+(d2t−2−d2t−1)=1+∑i=1t−1rα2i−∑i=1trα2i−1, \text{either}\quad (d_0 - d_1) + (d_2 - d_3) + \dots + (d_{2t-2} - d_{2t-1}) = 1 + \sum_{i=1}^{t-1} r^{\alpha_{2i}} - \sum_{i=1}^{t} r^{\alpha_{2i-1}},
or(d1−d2)+(d3−d4)+⋯+(d2t−1−d2t)=∑i=1trα2i−1−∑i=1trα2i, \text{or}\quad (d_1 - d_2) + (d_3 - d_4) + \dots + (d_{2t-1} - d_{2t}) = \sum_{i=1}^{t} r^{\alpha_{2i-1}} - \sum_{i=1}^{t} r^{\alpha_{2i}},

∑i=1nrβi=∑i=1n−1rγi,βi,γi∈Z,(1) \sum_{i=1}^{n} r^{\beta_i} = \sum_{i=1}^{n-1} r^{\gamma_i}, \quad \beta_i, \gamma_i \in \mathbb{Z}, \qquad (1)
for some n≤1011n \le 1011. Thus, if Alice can reach her goal, then this equation has a solution for n=1011n = 1011 (we can add equal terms to both sums in order to increase nn).

Conversely, if (1) has a solution for n=1011n = 1011, then Alice can compose a corresponding sequence of distances d0,d1,…,d2021d_0, d_1, \dots, d_{2021} and then realize it by a sequence of moves. So the problem reduces to the solvability of (1) for n=1011n = 1011.

Assume that, for some rational rr, there is a solution of (1). Write rr in lowest terms as r=a/br = a/b. Substitute this into (1), multiply by the common denominator, and collect all terms on the left hand side to get
∑i=12n−1(−1)iaμibN−μi=0,μi∈{0,1,…,N},(2) \sum_{i=1}^{2n-1} (-1)^i a^{\mu_i} b^{N-\mu_i} = 0, \quad \mu_i \in \{0, 1, \dots, N\}, \qquad (2)
for some N≥0N \ge 0. We assume that there exist indices j−j_- and j+j_+ such that μj−=0\mu_{j-} = 0 and μj+=N\mu_{j+} = N.

Reducing (2) modulo a−ba-b (so that a≡ba \equiv b), we get
0=∑i=12n−1(−1)iaμibN−μi≡∑i=12n−1(−1)ibμibN−μi=−bN(moda−b). 0 = \sum_{i=1}^{2n-1} (-1)^i a^{\mu_i} b^{N-\mu_i} \equiv \sum_{i=1}^{2n-1} (-1)^i b^{\mu_i} b^{N-\mu_i} = -b^N \pmod{a-b}.
Since gcd(a−b,b)=1\text{gcd}(a-b, b) = 1, this is possible only if a−b=1a-b=1.

Reducing (2) modulo a+ba+b (so that a≡−ba \equiv -b), we get
0=∑i=12n−1(−1)iaμibN−μi≡∑i=12n−1(−1)i(−1)μibμibN−μi=SbN(moda+b) 0 = \sum_{i=1}^{2n-1} (-1)^i a^{\mu_i} b^{N-\mu_i} \equiv \sum_{i=1}^{2n-1} (-1)^i (-1)^{\mu_i} b^{\mu_i} b^{N-\mu_i} = S b^N \pmod{a+b}
for some odd (thus nonzero) SS with ∣S∣≤2n−1|S| \le 2n-1. Since gcd(a+b,b)=1\text{gcd}(a+b, b) = 1, this is possible only if a+b∣Sa+b \mid S. So a+b≤2n−1a+b \le 2n-1, and hence b=a−1≤n−1=1010b = a-1 \le n-1 = 1010.

her goal. For this purpose, in (1) we put n=an = a, β1=β2=⋯=βa=0\beta_1 = \beta_2 = \cdots = \beta_a = 0, and
γ1=γ2=⋯=γb=1\gamma_1 = \gamma_2 = \cdots = \gamma_b = 1.

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

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.