Maths Olympiad Prep

Library / India — Team Selection Test /64 of 77

India — Team Selection Test, 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)n≥1(a_n)_{n \ge 1} by
a1=a,a2=b,an is the largest odd divisor of an−1+an−2, for all n≥3. 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 n≥Nn \ge N.

Solution

Each ana_n is odd for n≥1n \ge 1. Hence an−1+an−2a_{n-1} + a_{n-2} is even for n≥3n \ge 3. This implies an≤(an−1+an−2)/2a_n \le (a_{n-1} + a_{n-2})/2, for all n≥3n \ge 3. An easy induction shows that an≥max⁡{a,b}a_n \ge \max\{a, b\}, for all nn. Thus the number of pairs of the form {an−1,an−2}\{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 u≤Mu \le M, v≤Mv \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 d∣and|a_n for all nn. Hence dd divides MM. Since a≠ba \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 ak≠Ma_k \ne M. By definition of the sequence, we have
M=M+ak2r, M = \frac{M + a_k}{2^r},
where r≥1r \ge 1. This gives ak=(2r−1)Ma_k = (2^r - 1)M. Hence MM divides aka_k. Now consider the position just one earlier: ak−1a_{k-1}, aka_k, MM. Again we have
M=ak−1+ak2s, M = \frac{a_{k-1} + a_k}{2^s},
for some s≥1s \ge 1. This gives ak−1=2sM−aka_{k-1} = 2^s M - a_k. It follows that MM divides ak−1a_{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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.