Maths Olympiad Prep

Library / /370 of 397

, 2022

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

Let a1,a2,a3,a_1, a_2, a_3, \dots be an infinite sequence of positive integers such that for all positive integers n,mn, m, an+2ma_{n+2m} divides an+an+ma_n + a_{n+m}. Prove that this sequence is eventually periodic, that is, there exist positive integers NN and dd such that for all n>Nn > N, an=an+da_n = a_{n+d}.

Solution

We will make repeated use of the following simple observation:

Lemma 1. If a positive integer dd divides ana_n and anma_{n-m} for some mm and n>2mn > 2m, it also divides an2ma_{n-2m}.

Proof. Both parts are obvious since ana_n divides an2m+anma_{n-2m} + a_{n-m}

Claim. The sequence (an)(a_n) is bounded.

Proof. Suppose the contrary. Then there exist infinitely many indices nn such that ana_n is greater than each of the previous terms a1,a2,,an1a_1, a_2, \dots, a_{n-1}. Let an=ka_n = k be such a term, n>10n > 10. For each s<n2s < \frac{n}{2} the number an=ka_n = k divides ans+an2s<2ka_{n-s} + a_{n-2s} < 2k, therefore
ans+an2s=k. a_{n-s} + a_{n-2s} = k.
In particular,
an=an1+an2=an2+an4=an4+an8, a_n = a_{n-1} + a_{n-2} = a_{n-2} + a_{n-4} = a_{n-4} + a_{n-8},
that is, an1=an4a_{n-1} = a_{n-4} and an2=an8a_{n-2} = a_{n-8}. It follows from Lemma 1 that an1a_{n-1} divides an13sa_{n-1-3s} for 3s<n13s < n-1 and an2a_{n-2} divides an26sa_{n-2-6s} for 6s<n26s < n-2. Since at least one of the numbers an1a_{n-1} and an2a_{n-2} is at least an2\frac{a_n}{2}, so is some aia_i with i6i \le 6. However, ana_n can be arbitrarily large, a contradiction.

Since (an)(a_n) is bounded, there exist only finitely many ii for which aia_i appears in the sequence finitely many times. In other words, there exists NN such that if ai=ta_i = t and i>Ni > N, then aj=ta_j = t for infinitely many jj.

Clearly, the sequence (an+N)n>0(a_{n+N})_{n>0} satisfies the divisibility condition, and it is enough to prove that this sequence is eventually periodic. Thus truncating the sequence if necessary, we can assume that each number appears infinitely many times in the sequence. Let kk be the maximum number appearing in the sequence.

Lemma 2. If a positive integer dd divides ana_n for some nn, then the numbers ii such that dd divides aia_i form an arithmetical progression with an odd difference.

Proof. Let i1<i2<i3<i_1 < i_2 < i_3 < \dots be all the indices ii such that dd divides aia_i. If is+is+1i_s+i_{s+1} is even, it follows from Lemma 1 that dd also divides ais+is+12a_{\frac{i_s+i_{s+1}}{2}}, impossible since is<is+is+12<is+1i_s < \frac{i_s+i_{s+1}}{2} < i_{s+1}. Thus isi_s and is+1i_{s+1} are always of different parity, and therefore is+is+2i_s+i_{s+2} is even. Applying Lemma 1 again, we see that dd divides ais+is+22a_{\frac{i_s+i_{s+2}}{2}}, hence is+is+22=is+1\frac{i_s+i_{s+2}}{2} = i_{s+1}.

We are ready now to solve the problem.

The number of positive divisors of all terms of the progression is finite. Let dsd_s be the difference of the progression corresponding to ss, that is, ss divides ana_n if and only if it divides an+tdsa_{n+td_s} for any positive integer tt. Let dd be the product of all dsd_s. Then each ss dividing a term of the progression divides ana_n if and only if it divides an+Da_{n+D}. This means that the sets of divisors of ana_n and an+Da_{n+D} coincide, and an+D=ana_{n+D} = a_n. Thus DD is a period of the sequence.

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.