Maths Olympiad Prep

Library / /347 of 397

, 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 BRB \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 XX' 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 rr^\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 dmdm1d_m - d_{m-1}. Therefore, the total increment of R\mathcal{R}'s coordinate, which should be 1, equals
either(d0d1)+(d2d3)++(d2t2d2t1)=1+i=1t1rα2ii=1trα2i1, \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(d1d2)+(d3d4)++(d2t1d2t)=i=1trα2i1i=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=1n1rγi,βi,γiZ,(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 n1011n \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=12n1(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 N0N \ge 0. We assume that there exist indices jj_- and j+j_+ such that μj=0\mu_{j-} = 0 and μj+=N\mu_{j+} = N.

Reducing (2) modulo aba-b (so that aba \equiv b), we get
0=i=12n1(1)iaμibNμii=12n1(1)ibμibNμi=bN(modab). 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(ab,b)=1\text{gcd}(a-b, b) = 1, this is possible only if ab=1a-b=1.

Reducing (2) modulo a+ba+b (so that aba \equiv -b), we get
0=i=12n1(1)iaμibNμii=12n1(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 S2n1|S| \le 2n-1. Since gcd(a+b,b)=1\text{gcd}(a+b, b) = 1, this is possible only if a+bSa+b \mid S. So a+b2n1a+b \le 2n-1, and hence b=a1n1=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,000 problems in a working order, from AMC 10 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.