Maths Olympiad Prep

Library / /23 of 26

, 2025

Number theory Difficulty 7.8 National Olympiad, round 2 Prove it Asia Pacific Mathematics Olympiad (APMO)

Consider an infinite sequence a1,a2,a_{1}, a_{2}, \ldots of positive integers such that
100!(am+am+1++an) is a multiple of anm+1an+m 100!\left(a_{m}+a_{m+1}+\cdots+a_{n}\right) \quad \text{ is a multiple of } a_{n-m+1} a_{n+m}
for all positive integers m,nm, n such that mnm \leq n.
Prove that the sequence is either bounded or linear.

Observation: A sequence of positive integers is bounded if there exists a constant NN such that an<Na_{n}<N for all nZ>0n \in \mathbb{Z}_{>0}. A sequence is linear if an=na1a_{n}=n \cdot a_{1} for all nZ>0n \in \mathbb{Z}_{>0}.

Solution

Let c=100!c=100!. Suppose that nm+2n \geq m+2. Then am+n=a(m+1)+(n1)a_{m+n}=a_{(m+1)+(n-1)} divides both c(am+am+1++an1+an)c\left(a_{m}+a_{m+1}+\cdots+a_{n-1}+a_{n}\right) and c(am+1++an1)c\left(a_{m+1}+\cdots+a_{n-1}\right), so it also divides the difference c(am+an)c\left(a_{m}+a_{n}\right). Notice that if n=m+1n=m+1 then am+na_{m+n} divides c(am+am+1)=c(am+an)c\left(a_{m}+a_{m+1}\right)=c\left(a_{m}+a_{n}\right), and if n=mn=m then am+na_{m+n} divides both camc a_{m} and 2cam=c(am+an)2 c a_{m}=c\left(a_{m}+a_{n}\right). In either cases; am+na_{m+n} divides c(am+an)c\left(a_{m}+a_{n}\right).
Analogously, one can prove that if m>n,amn=a(m1)(n1)m>n, a_{m-n}=a_{(m-1)-(n-1)} divides c(aman)c\left(a_{m}-a_{n}\right), as it divides both c(an+1++am)c\left(a_{n+1}+\cdots+a_{m}\right) and c(an++am1)c\left(a_{n}+\cdots+a_{m-1}\right).
From now on, drop the original divisibility statement and keep the statements " am+na_{m+n} divides c(am+an)c\left(a_{m}+a_{n}\right) " and " amna_{m-n} divides c(aman)c\left(a_{m}-a_{n}\right)." Now, all conditions are linear, and we can suppose without loss of generality that there is no integer D>1D>1 that divides every term of the sequence; if there is such an integer DD, divide all terms by DD.
Having this in mind, notice that am=am+nna_{m}=a_{m+n-n} divides c(am+nan)c\left(a_{m+n}-a_{n}\right) and also c(am+naman)c\left(a_{m+n}-a_{m}-a_{n}\right); analogously, ana_{n} also divides c(am+naman)c\left(a_{m+n}-a_{m}-a_{n}\right), and since am+na_{m+n} divides c(am+an)c\left(a_{m}+a_{n}\right), it also divides c(am+naman)c\left(a_{m+n}-a_{m}-a_{n}\right). Therefore, c(am+naman)c\left(a_{m+n}-a_{m}-a_{n}\right) is divisible by am,ana_{m}, a_{n}, and am+na_{m+n}, and therefore also by lcm(am,an,am+n)\operatorname{lcm}\left(a_{m}, a_{n}, a_{m+n}\right). In particular, cam+nc(am+an)(modlcm(am,an))c a_{m+n} \equiv c\left(a_{m}+a_{n}\right)\left(\bmod \operatorname{lcm}\left(a_{m}, a_{n}\right)\right).
Since am+na_{m+n} divides c(am+an),am+nc(am+an)c\left(a_{m}+a_{n}\right), a_{m+n} \leq c\left(a_{m}+a_{n}\right).
From now on, we divide the problem in two cases.

Case 1: there exist m,nm, n such that lcm(am,an)>c2(am+an)\operatorname{lcm}\left(a_{m}, a_{n}\right)>c^{2}\left(a_{m}+a_{n}\right).
If lcm(am,an)>c2(am+an)>c(am+an)\operatorname{lcm}\left(a_{m}, a_{n}\right)>c^{2}\left(a_{m}+a_{n}\right)>c\left(a_{m}+a_{n}\right) then both c(am+an)c\left(a_{m}+a_{n}\right) and cam+nc a_{m+n} are less than cam+nc2(am+an)<lcm(am,an)c a_{m+n} \leq c^{2}\left(a_{m}+a_{n}\right)<\operatorname{lcm}\left(a_{m}, a_{n}\right). This implies cam+n=c(am+an)am+n=am+anc a_{m+n}=c\left(a_{m}+a_{n}\right) \Longleftrightarrow a_{m+n}=a_{m}+a_{n}. Now we can extend this further: since gcd(am,am+n)=gcd(am,am+an)=gcd(am,an)\operatorname{gcd}\left(a_{m}, a_{m+n}\right)=\operatorname{gcd}\left(a_{m}, a_{m}+a_{n}\right)=\operatorname{gcd}\left(a_{m}, a_{n}\right), it follows that
lcm(am,am+n)=amam+ngcd(am,an)=am+nanlcm(am,an)>c2(am+an)2an>c2(2aman+an2)an=c2(2am+an)=c2(am+am+n). \begin{aligned} \operatorname{lcm}\left(a_{m}, a_{m+n}\right) & =\frac{a_{m} a_{m+n}}{\operatorname{gcd}\left(a_{m}, a_{n}\right)}=\frac{a_{m+n}}{a_{n}} \operatorname{lcm}\left(a_{m}, a_{n}\right)>\frac{c^{2}\left(a_{m}+a_{n}\right)^{2}}{a_{n}} \\ & >\frac{c^{2}\left(2 a_{m} a_{n}+a_{n}^{2}\right)}{a_{n}}=c^{2}\left(2 a_{m}+a_{n}\right)=c^{2}\left(a_{m}+a_{m+n}\right) . \end{aligned}
We can iterate this reasoning to obtain that akm+n=kam+ana_{k m+n}=k a_{m}+a_{n}, for all kZ>0k \in \mathbb{Z}_{>0}. In fact, if the condition lcm(am,an)>c2(am+an)\operatorname{lcm}\left(a_{m}, a_{n}\right)>c^{2}\left(a_{m}+a_{n}\right) holds for the pair (n,m)(n, m), then it also holds for the pairs (m+n,m),(2m+n,m),,((k1)m+n,m)(m+n, m),(2 m+n, m), \ldots,((k-1) m+n, m), which implies akm+n=a(k1)m+n+am=a(k2)m+n+2am==an+kama_{k m+n}=a_{(k-1) m+n}+a_{m}= a_{(k-2) m+n}+2 a_{m}=\cdots=a_{n}+k a_{m}.
Similarly, am+kn=am+kana_{m+k n}=a_{m}+k a_{n}.
Now, am+n+mn=an+(n+1)m=am+(m+1)nan+(n+1)am=am+(m+1)anman=nama_{m+n+m n}=a_{n+(n+1) m}=a_{m+(m+1) n} \Longrightarrow a_{n}+(n+1) a_{m}=a_{m}+(m+1) a_{n} \Longleftrightarrow m a_{n}= n a_{m}. If d=gcd(m,n)d=\operatorname{gcd}(m, n) then ndam=mdan\frac{n}{d} a_{m}=\frac{m}{d} a_{n}.
Therefore, since gcd(md,nd)=1,md\operatorname{gcd}\left(\frac{m}{d}, \frac{n}{d}\right)=1, \frac{m}{d} divides ama_{m} and nd\frac{n}{d} divides ana_{n}, which means that
an=mdt=tdm and am=ndt=tdn, for some tZ>0 a_{n}=\frac{m}{d} \cdot t=\frac{t}{d} m \quad \text{ and } \quad a_{m}=\frac{n}{d} \cdot t=\frac{t}{d} n, \quad \text{ for some } t \in \mathbb{Z}_{>0}
which also implies
akm+n=td(km+n) and am+kn=td(m+kn), for all kZ>0. a_{k m+n}=\frac{t}{d}(k m+n) \quad \text{ and } \quad a_{m+k n}=\frac{t}{d}(m+k n), \quad \text{ for all } k \in \mathbb{Z}_{>0} .
Now let's prove that akd=tk=td(kd)a_{k d}=t k=\frac{t}{d}(k d) for all kZ>0k \in \mathbb{Z}_{>0}. In fact, there exist arbitrarily large positive integers R,SR, S such that kd=RmSn=(n+(R+1)m)(m+(S+1)n)k d=R m-S n=(n+(R+1) m)-(m+(S+1) n) (for instance, let u,vZu, v \in \mathbb{Z} such that kd=munvk d=m u-n v and take R=u+QnR=u+Q n and S=v+QmS=v+Q m for QQ sufficiently large.)
Let x=n+(R+1)mx=n+(R+1) m and y=m+(S+1)ny=m+(S+1) n. Then kd=xyx=y+kd,ax=tdxk d=x-y \Longleftrightarrow x=y+k d, a_{x}=\frac{t}{d} x, and ay=tdy=td(xkd)=axtka_{y}=\frac{t}{d} y=\frac{t}{d}(x-k d)=a_{x}-t k. Thus axa_{x} divides c(ay+akd)=c(akd+axtk)c\left(a_{y}+a_{k d}\right)=c\left(a_{k d}+a_{x}-t k\right), and therefore also c(akdtk)c\left(a_{k d}-t k\right). Since ax=tdxa_{x}=\frac{t}{d} x can be arbitrarily large, akd=tk=td(kd)a_{k d}=t k=\frac{t}{d}(k d). In particular, ad=ta_{d}=t, so akd=kada_{k d}=k a_{d}.
Since kad=akd=a1+(kd1)k a_{d}=a_{k d}=a_{1+(k d-1)} divides c(a1+akd1),bk=akd1c\left(a_{1}+a_{k d-1}\right), b_{k}=a_{k d-1} is unbounded. Pick p>akd1p>a_{k d-1} a large prime and consider apd=pada_{p d}=p a_{d}. Then
lcm(apd,akd1)lcm(p,akd1)=pakd1 \operatorname{lcm}\left(a_{p d}, a_{k d-1}\right) \geq \operatorname{lcm}\left(p, a_{k d-1}\right)=p a_{k d-1}
We can pick akd1a_{k d-1} and pp large enough so that their product is larger than a particular linear combination of them, that is,
lcm(p,akd1)=pakd1>c2(pad+akd1)=c2(apd+akd1) \operatorname{lcm}\left(p, a_{k d-1}\right)=p a_{k d-1}>c^{2}\left(p a_{d}+a_{k d-1}\right)=c^{2}\left(a_{p d}+a_{k d-1}\right)
Then all the previous facts can be applied, and since gcd(pd,kd1)=1,ak=akgcd(pd,kd1)=kagcd(pd,kd1)=ka1\operatorname{gcd}(p d, k d-1)=1, a_{k}=a_{k \operatorname{gcd}(p d, k d-1)} =k a_{\operatorname{gcd}(p d, k d-1)}=k a_{1}, that is, the sequence is linear. Also, since a1a_{1} divides all terms, a1=1a_{1}=1.

Case 2: lcm(am,an)c2(am+an)\operatorname{lcm}\left(a_{m}, a_{n}\right) \leq c^{2}\left(a_{m}+a_{n}\right) for all m,nm, n.
Suppose that amana_{m} \leq a_{n}; then lcm(am,an)=Manc2(am+an)2c2anM2c2\operatorname{lcm}\left(a_{m}, a_{n}\right)=M a_{n} \leq c^{2}\left(a_{m}+a_{n}\right) \leq 2 c^{2} a_{n} \Longrightarrow M \leq 2 c^{2}, that is, the factor in the smaller term that is not in the larger term is at most 2c22 c^{2}.
We prove that in this case the sequence must be bounded. Suppose on the contrary; then there is a term ama_{m} that is divisible by a large prime power pdp^{d}. Then every larger term ana_{n} is divisible by a factor larger than pd2c2\frac{p^{d}}{2 c^{2}}. So we pick pd>(2c2)2p^{d}>\left(2 c^{2}\right)^{2}, so that every large term ana_{n} is divisible by the prime power pe>2c2p^{e}>2 c^{2}. Finally, fix aka_{k} for any kk. It follows from ak+nc(ak+an)a_{k+n} \mid c\left(a_{k}+a_{n}\right) that (an)\left(a_{n}\right) is unbounded, so we can pick ana_{n} and ak+na_{k+n} large enough such that both are divisible by pep^{e}. Hence any aka_{k} is divisible by pp, which is a contradiction to the fact that there is no D>1D>1 that divides every term in 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 reproduced verbatim; metadata (topic, difficulty) added by this project.