Maths Olympiad Prep

Library / /76 of 91

, 2009

Number theory Difficulty 7.1 National Olympiad, round 2 Prove it India

Let aa, bb be two distinct odd positive integers. Define a sequence (an)n1(a_n)_{n \ge 1} by
a1=a,a2=b,an is the largest odd divisor of an1+an2, for all n3. a_1 = a,\quad a_2 = b,\quad a_n \text{ is the largest odd divisor of } a_{n-1} + a_{n-2}, \text{ for all } n \ge 3.
Show that there exists a natural number NN such that an=gcd(a,b)a_n = \text{gcd}(a, b) for all nNn \ge N.

Solution

Each ana_n is odd for n1n \ge 1. Hence an1+an2a_{n-1} + a_{n-2} is even for n3n \ge 3. This implies an(an1+an2)/2a_n \le (a_{n-1} + a_{n-2})/2, for all n3n \ge 3. An easy induction shows that anmax{a,b}a_n \ge \max\{a, b\}, for all nn. Thus the number of pairs of the form {an1,an2}\{a_{n-1}, a_{n-2}\} is finite. It follows that ana_n is eventually periodic.

Let MM be the largest number in the cycle into which the sequence settles. Let uu, vv be the numbers preceding it. Then we see that uMu \le M, vMv \le M and M(u+v)/2M \le (u+v)/2. Thus u=v=Mu = v = M. This implies that the sequence is eventually constant.

Let d=gcd(a,b)d = \text{gcd}(a, b). Then dd is odd. An easy induction proves that dand|a_n for all nn. Hence dd divides MM. Since aba \ne b, it cannot be the case that an=Ma_n = M for all nn. Consider the position aka_k, MM, MM in the sequence, where akMa_k \ne M. By definition of the sequence, we have
M=M+ak2r, M = \frac{M + a_k}{2^r},
where r1r \ge 1. This gives ak=(2r1)Ma_k = (2^r - 1)M. Hence MM divides aka_k. Now consider the position just one earlier: ak1a_{k-1}, aka_k, MM. Again we have
M=ak1+ak2s, M = \frac{a_{k-1} + a_k}{2^s},
for some s1s \ge 1. This gives ak1=2sMaka_{k-1} = 2^s M - a_k. It follows that MM divides ak1a_{k-1}. Since MM is odd, induction shows that MM divides ana_n for all nn. Hence MM divides dd. We conclude that M=dM = d.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.