Maths Olympiad Prep

Library / /1 of 2

, 2014

Number theory Difficulty 8.0 National Olympiad, round 2 Prove it Taiwan

Determine whether there exists an infinite sequence of integers a1,a2,a3,a_1, a_2, a_3, \dots with 0<ai<100 < a_i < 10 and a positive integer NN such that, for every integer k>Nk > N, the number
i=1kai10i1 \sum_{i=1}^{k} a_i 10^{i-1}
is a perfect square?

Solution

Impossible. We use proof by contradiction. Suppose such an infinite sequence and positive integer NN exist. Let yk=i=1kai10i1y_k = \sum_{i=1}^{k} a_i 10^{i-1}, then for all k>Nk > N, there exists a positive integer xkx_k such that yk=xk2y_k = x_k^2.

1. For all nn, let γn\gamma_n be the largest positive integer satisfying 5γnxn5^{\gamma_n}|x_n. We will prove: for all n>Nn > N, 2γnn2\gamma_n \ge n.
Suppose there exists n<Nn < N such that 2γn<n2\gamma_n < n, then
yn+1=10nan+1+yn=52γn(2n5n2γnan+1+yn52γn). y_{n+1} = 10^n a_{n+1} + y_n = 5^{2\gamma_n} \left( 2^n 5^{n-2\gamma_n} a_{n+1} + \frac{y_n}{5^{2\gamma_n}} \right).
Since yn/52γny_n/5^{2\gamma_n} cannot be divisible by 5, we must have γn+1=γn<n<n+1\gamma_{n+1} = \gamma_n < n < n+1, hence γn=γn+1==γ\gamma_n = \gamma_{n+1} = \dots = \gamma.
On the other hand, for all knk \ge n,
(xk+1xk)(xk+1+xk)=yk+1yk=ak+110k. (x_{k+1} - x_k)(x_{k+1} + x_k) = y_{k+1} - y_k = a_{k+1} 10^k.
Since (xk+1xk)+(xk+1+xk)=2xk+1(x_{k+1} - x_k) + (x_{k+1} + x_k) = 2x_{k+1}, by the definition of γ=γk+1\gamma = \gamma_{k+1}, one of these two must not be divisible by 5γ+15^{\gamma+1}. Furthermore, since 5k(xk+1xk)(xk+1+xk)5^k|(x_{k+1} - x_k)(x_{k+1} + x_k), one of them must be divisible by 5kγ5^{k-\gamma}, hence
5kγmax{xk+1xk,xk+1+xk}<2xk+1=2yk+1<2×10(k+1)/2, 5^{k-\gamma} \le \max\{x_{k+1} - x_k, x_{k+1} + x_k\} < 2x_{k+1} = 2\sqrt{y_{k+1}} < 2 \times 10^{(k+1)/2},
This implies 52k<4×52γ×10k+15^{2k} < 4 \times 5^{2\gamma} \times 10^{k+1}, that is, (5/2)k<40×52γ(5/2)^k < 40 \times 5^{2\gamma}. This cannot hold for sufficiently large kk, giving a contradiction.

2. Now consider all k>max{N/2,2}k > \max\{N/2, 2\}. From 1. we know 2γ2k+12k+12\gamma_{2k+1} \ge 2k+1 and 2γ2k+22k+22\gamma_{2k+2} \ge 2k+2, so γ2k+1k+1\gamma_{2k+1} \ge k+1 and γ2k+2k+1\gamma_{2k+2} \ge k+1. Also, from y2k+2=a2k+2102k+1+y2k+1y_{2k+2} = a_{2k+2}10^{2k+1} + y_{2k+1} we know 52k+2y2k+2y2k+1=a2k+2102k+15^{2k+2}|y_{2k+2} - y_{2k+1} = a_{2k+2}10^{2k+1}, so 5a2k+2a2k+2=55|a_{2k+2} \Rightarrow a_{2k+2} = 5. Therefore
(x2k+2x2k+1)(x2k+2+x2k+1)=y2k+2y2k+1=5×102k+1=22k+152k+2. (x_{2k+2} - x_{2k+1})(x_{2k+2} + x_{2k+1}) = y_{2k+2} - y_{2k+1} = 5 \times 10^{2k+1} = 2^{2k+1}5^{2k+2}.
Let Ak=x2k+2/5k+1A_k = x_{2k+2}/5^{k+1}, Bk=x2k+1/5k+1B_k = x_{2k+1}/5^{k+1}; note that by 1., these must be positive integers, and
(AkBk)(Ak+Bk)=22k+1(3) (A_k - B_k)(A_k + B_k) = 2^{2k+1} \qquad (3)
Note that a10a_1 \ne 0, so AkA_k and BkB_k are both odd (otherwise y2k+2y_{2k+2} or y2k+1y_{2k+1} would be a multiple of 10, which is not allowed). This means that one of AkBkA_k - B_k and Ak+BkA_k + B_k is not divisible by 4. Hence by (1), AkBk=2A_k - B_k = 2 and Ak+Bk=22kA_k + B_k = 2^{2k}, so Ak=22k1+1A_k = 2^{2k-1} + 1, giving
x2k+2=5k+1Ak=10k+12k2+5k+1>10k+1 x_{2k+2} = 5^{k+1}A_k = 10^{k+1}2^{k-2} + 5^{k+1} > 10^{k+1}
(since k2k \ge 2) but this means y2k+2>102k+2y_{2k+2} > 10^{2k+2}, a contradiction!

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.