Olympiad Maths Prep

Track / Stage 6 / 343 of 400 #1343 of 2000

Problem 1343

National olympiad, first round
Number theory Difficulty 6.7 Prove it 37th Iranian Mathematical Olympiad · Iran

Let kNk \in \mathbb{N} and {an}n0\{a_n\}_{n \ge 0} and {bn}n0\{b_n\}_{n \ge 0} be two sequences of positive integers such that ai,bi{1,2,,9}a_i, b_i \in \{1, 2, \dots, 9\}. For all n0n \ge 0
ana1a0+kbnb1b0+k. \overline{a_n \dots a_1 a_0} + k \mid \overline{b_n \dots b_1 b_0} + k.
Prove that there is a number tt with 1t91 \le t \le 9 and NNN \in \mathbb{N} such that bn=tanb_n = t a_n for all nNn \ge N.

(Note that (xnxn1x0)=10n×xn++10×x1+x0)(\overline{x_n x_{n-1} \dots x_0}) = 10^n \times x_n + \dots + 10 \times x_1 + x_0)

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Let An=ana1a0A_n = \overline{a_n \dots a_1 a_0}, Bn=bnb1b0B_n = \overline{b_n \dots b_1 b_0}, and Cn=Bn+kAn+kC_n = \frac{B_n + k}{A_n + k}. Obviously Cn<10C_n < 10, so Cn{1,2,,9}C_n \in \{1, 2, \dots, 9\}.

Claim. If the sequence {ai}\{a_i\} doesn't eventually become constant 99, there exists NNN \in \mathbb{N} such that k+An<10n+1k + A_n < 10^{n+1} (n>N\forall n > N).
Proof. Assume that there exists an index ii large enough that k<10ik < 10^i and ai9a_i \neq 9. So we get
k+Ai=aia0+k<9×10i+k<10i+1. k + A_i = \overline{a_i \dots a_0} + k < 9 \times 10^i + k < 10^{i+1}.
Now note that
k+Ai+1=10i+1ai+1+Ai+k9×10i+1+Ai+k<10i+2. k + A_{i+1} = 10^{i+1} a_{i+1} + A_i + k \le 9 \times 10^{i+1} + A_i + k < 10^{i+2}.
So inductively, the claim will be proved.
If the sequence aia_i becomes constant 99, then the sequence bib_i also becomes constant 99 and we're done. Now consider the case that aia_i doesn't become constant 99.
For all sufficiently large nn, An+k<10n+1A_n + k < 10^{n+1}. Also we know that (An+k)Cn=Bn+k(A_n + k) C_n = B_n + k and (An+1+k)Cn+1=Bn+1+k(A_{n+1} + k) C_{n+1} = B_{n+1} + k, which implies:
10n+1bn+1=Bn+1Bn=(An+1+k)Cn+1(An+k)Cn=(An+k)(Cn+1Cn)+10n+1×Cn+1an+1. \begin{aligned} 10^{n+1} b_{n+1} &= B_{n+1} - B_n = (A_{n+1} + k) C_{n+1} - (A_n + k) C_n \\ &= (A_n + k)(C_{n+1} - C_n) + 10^{n+1} \times C_{n+1} a_{n+1}. \end{aligned}
Therefore,
10n+1(An+k)(Cn+1Cn). 10^{n+1} \mid (A_n + k)(C_{n+1} - C_n).
Now suppose that Cn+1CnC_{n+1} \neq C_n, which means 1Cn+1Cn81 \le |C_{n+1} - C_n| \le 8. Then, because gcd(103,Cn+1Cn)8\gcd(10^3, C_{n+1} - C_n) \le 8, we have 10n2An+k10^{n-2} \mid A_n + k. For all nn, define SnS_n such that for some θN\theta \in \mathbb{N},
An+k=10θ×Sn A_n + k = 10^{\theta} \times S_n
and 10Sn10 \nmid S_n.
Let Ai1+k=10α×Si1A_{i-1} + k = 10^{\alpha} \times S_{i-1}. Then
Ai+k=10α×Si1+10i×ai. A_i + k = 10^{\alpha} \times S_{i-1} + 10^i \times a_i.
If we choose ii large enough, by the previous claim we know that Ai1+k<10iA_{i-1} + k < 10^i. So α<i\alpha < i. This means that Ai+k=10α×SiA_i + k = 10^\alpha \times S_i. So we get that An+k=10α×SnA_n + k = 10^\alpha \times S_n for all sufficiently large nn.
But if Cn+1CnC_{n+1} \neq C_n, we have 10n2An+k10^{n-2} \mid A_n + k this means that αn2\alpha \ge n - 2, which is impossible for large enough nn. So there exists NNN \in \mathbb{N} such that Cn+1=CnC_{n+1} = C_n for all n>Nn > N. This means that 10n+1bn+1=C×10n+1an+110^{n+1} b_{n+1} = C \times 10^{n+1} a_{n+1}. So bn+1=C×an+1b_{n+1} = C \times a_{n+1} and we're done. ■

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