Maths Olympiad Prep

Track / Stage 7 / 87 of 300 #1967 of 2444

Problem 1967

National Olympiad second round; IMO P1/P4
Number theory Difficulty 7.2 Prove it Iranian Mathematical Olympiad · Iran

Determine all sequences (an)(a_n) of positive integers such that
12<gcd(ar,as)gcd(r,s)<2, \frac{1}{2} < \frac{\gcd(a_r, a_s)}{\gcd(r, s)} < 2,
for all positive integers r,sr, s.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

For a moment, assume a2a4a_2 \neq a_4. Through the following solution, we shall several times use the fact that n2<an<2n\frac{n}{2} < a_n < 2n. We divide the solution into three parts;

i. Large primes part; We prove that for each prime p5p \ge 5 the only prime less than or equal to pp that divides ap,ap2,a_p, a_{p^2}, \dots is pp;

ii. We shall prove apk=pka_{p^k} = p^k for all primes p5p \ge 5;

iii. Small primes part; We resolve the problem for p=2,p=3p = 2, p = 3 and conclude the proof.

In order to prove part one; for each prime pp, we define sets of primes Ap,BpA_p, B_p as follows;
Ap={qp:qapk,k=1,2,},A_p = \{q \le p : q \mid a_{p^k}, k = 1, 2, \dots\},
Bp={q:qapk,k=1,}B_p = \{q : q \mid a_{p^k}, k = 1, \dots\}
That is, Ap=Bp[1,p]A_p = B_p \cap [1, p]. We shall firstly prove ApA_p's as well as BpB_p's are disjoint. Notice that for prime pqp \neq q we have gcd(apk,aql)=1\gcd(a_{p^k}, a_{q^l}) = 1. Hence, BpB_p's are disjoint. Analogously, ApA_p's are disjoint. We shall then prove that ApA_p is non-empty for p5p \ge 5. Assume to the contrary that ApA_p is empty for some p5p \ge 5. Notice that apk+1apka_{p^{k+1}} \neq a_{p^k} since apk<2pk<12pk+1<apk+1a_{p^k} < 2p^k < \frac{1}{2}p^{k+1} < a_{p^{k+1}}. Moreover, apka_{p^k} divides apk+1a_{p^{k+1}} since otherwise, there is at least one prime q>pq > p such that vq(apk)>vq(apk+1)v_q(a_{p^k}) > v_q(a_{p^{k+1}}). Hence, gcd(apk+1,apk)apkq<apkp\gcd(a_{p^{k+1}}, a_{p^k}) \le \frac{a_{p^k}}{q} < \frac{a_{p^k}}{p}.

On the other hand,
gcd(apk+1,apk)gcd(pk,pk+1)<apkpk+1<2p<12. \frac{\gcd(a_{p^{k+1}}, a_{p^k})}{\gcd(p^k, p^{k+1})} < \frac{a_{p^k}}{p^{k+1}} < \frac{2}{p} < \frac{1}{2}.
A contradiction. Thus, apkapk+1a_{p^k} \nmid a_{p^{k+1}}. Hence, for each n1n \ge 1 there would be a prime number qn>pq_n > p that qnapnapn1q_n \nmid \frac{a_{p^n}}{a_{p^{n-1}}}. Hence,
apnq1qn>(p+1)n. a_{p^n} \ge q_1 \cdots q_n > (p+1)^n.
Choose nn suitably large to ensure that (p+1)n>2pn(p+1)^n > 2p^n, we are done. Thus, ApA_p is not empty for p5p \ge 5. Now, for each NN; p<NAp{pP,p<N}\bigcup_{p<N} A_p \subset \{p \in \mathbb{P}, p < N\}, where P\mathbb{P} is the set of prime numbers.

Then, A2A3A5{2,3,5}A_2 \cup A_3 \cup A_5 \subset \{2, 3, 5\}. Notice that A2,A3,A5A_2, A_3, A_5 are disjoint. Further, since a2{2,3},a3{2,3,4,5}a_2 \in \{2, 3\}, a_3 \in \{2, 3, 4, 5\} we find that if a22a_2 \neq 2 then A2A_2 is empty and hence—and as you would see in the small primes part—we can prove that a3{2,4}a_3 \in \{2, 4\} hence, A3A_3 has one element. Since gcd(a5,a3)=gcd(a5,a2)=1\gcd(a_5, a_3) = \gcd(a_5, a_2) = 1 we find that A5={5}A_5 = \{5\} and for all p5p \ge 5, ApA_p and {2,3,5}\{2, 3, 5\} are disjoint.

We are ready to prove the part ii. Now, comparing the sizes, we find that Ap=1|A_p| = 1 and p<NAp={pP,p<N}\bigcup_{p<N} A_p = \{p \in \mathbb{P}, p < N\}, for each NN. Hence, Ap={p}A_p = \{p\} for all p5p \ge 5. Now, if there is a qpq \neq p in BpB_p then qq would not be a member of BqB_q and hence AqA_q which is a contradiction. Yielding Bp={p}B_p = \{p\} and hence apk=pka_{p^k} = p^k for all p5p \ge 5.

For the small prime part. We shall firstly prove a35a_3 \neq 5, indeed, If a3=5a_3 = 5 it follows that 1<gcd(a6,a2)<41 < \gcd(a_6, a_2) < 4. Hence, 3a63\mid a_6. By the same reasoning, 32<gcd(a6,a3)<6\frac{3}{2} < \gcd(a_6, a_3) < 6 hence, 5a65\mid a_6. It follows that a615a_6 \ge 15, a contradiction.

Now, since a1=1a_1 = 1 and a2{2,3}a_2 \in \{2, 3\}. If a2=3a_2 = 3 then a3{2,4}a_3 \in \{2, 4\}. Hence, a35a_3 \neq 5. If a3{2,4}a_3 \in \{2, 4\} then a6a_6 must be divisible by 6 and a6<12a_6 < 12 yielding a6=6a_6 = 6. On the other hand, a4=3a_4 = 3. A contradiction. Hence, a2=2a_2 = 2. Now, we shall prove that a3=3a_3 = 3. Indeed, if a3=5a_3 = 5 since a5=5a_5 = 5, we yield a contradiction. Finally, notice that apk=pkampka_{p^k} = p^k\mid a_{mp^k}. Hence, nann\mid a_n and then an=na_n = n.

It is now time to remove banal condition a2a4a_2 \neq a_4 in the following way. Indeed, if a2=3a_2 = 3 and a3{2,4}a_3 \in \{2, 4\} it follows that (a2n)(a_{2n}), (a3n)(a_{3n}) would be powers of 3 and 2, respectively. Let N=2a3bTN = 2^a3^bT, gcd(T,6)=1\text{gcd}(T, 6) = 1. Then, we can prove that aT=Ta_T = T and hence, from 12T<gcd(T,aN)<2T\frac{1}{2}T < \text{gcd}(T, a_N) < 2T we find that TaNT\mid a_N.

Let (v2(aN),v3(aN))=(c,d)(v_2(a_N), v_3(a_N)) = (c, d). It follows that 12<gcd(aN,a2C)gcd(N,2C)<2\frac{1}{2} < \frac{\text{gcd}(a_N, a_{2C})}{\text{gcd}(N, 2^C)} < 2. Choose CC large enough such that C>aC > a and v3(a2C)>dv_3(a_{2C}) > d it follows that 2a1<3d<2a+12^{a-1} < 3^d < 2^{a+1}. Analogously, choosing D>bD > b, v2(a3D)>cv_2(a_{3D}) > c yields 3b2<2c<23b\frac{3^b}{2} < 2^c < 2 \cdot 3^b. It is now clear that if a=1a=1 then d=1d=1. If 2c>433b2^c > \frac{4}{3} \cdot 3^b then aN3433bT=2Na_N \geq 3 \cdot \frac{4}{3} \cdot 3^b \cdot T = 2N, a contradiction. Hence, 2c433b2^c \leq \frac{4}{3} \cdot 3^b.

Since the sequence {(nlog23)}\{(n \cdot \log_2 3)\} is dense on (0,1)(0, 1), for all ε>0\varepsilon > 0 there is an integer dd such that {dlog23}(1+log223,1+log2(ε+23))\{d \cdot \log_2 3\} \in (1 + \log_2 \frac{2}{3}, 1 + \log_2(\varepsilon + \frac{2}{3})). Then, 232a1<3d<(23+ε)2a1\frac{2}{3} \cdot 2^{a_1} < 3^d < (\frac{2}{3} + \varepsilon)2^{a_1}, for some a1a_1. Let N=2a13bTN = 2^{a_1} \cdot 3^b \cdot T now, by choosing ε\varepsilon small enough, it follows that v3(aN)=dv_3(a_N) = d. Now, if 2v2(aN)<34+ε3b2^{v_2(a_N)} < \frac{3}{4+\varepsilon}3^b, for some ε>0\varepsilon > 0 it follows that aN<34+ε3b(23+ε)2a1Ta_N < \frac{3}{4+\varepsilon}3^b \cdot (\frac{2}{3} + \varepsilon)2^{a_1} \cdot T, it follows that aN<N2a_N < \frac{N}{2}. A contradiction. Hence, we find that 34+ε3b2v2(aN)433b\frac{3}{4+\varepsilon}3^b \leq 2^{v_2(a_N)} \leq \frac{4}{3} \cdot 3^b.

Now, choose cc such that {clog32}(1+log323,1+log334+ε)\{c \cdot \log_3 2\} \in (1 + \log_3 \frac{2}{3}, 1 + \log_3 \frac{3}{4+\varepsilon}), it follows that 233b1<2c<34+ε3b1\frac{2}{3} \cdot 3^{b_1} < 2^c < \frac{3}{4+\varepsilon} \cdot 3^{b_1}. Choosing N=2a13b1TN = 2^{a_1}3^{b_1}T, it follows that v2(aN){c,c+1}v_2(a_N) \in \{c, c+1\}. On the other hand, from
34+ε3b12v2(aN)433b1 \frac{3}{4+\varepsilon}3^{b_1} \leq 2^{v_2(a_N)} \leq \frac{4}{3} \cdot 3^{b_1}
We find that v2(aN)=c+1v_2(a_N) = c + 1. But then 2c=2v2(aN)2>233b12^c = \frac{2^{v_2(a_N)}}{2} > \frac{2}{3} \cdot 3^{b_1}. Yielding 2v2(aN)>433b12^{v_2(a_N)} > \frac{4}{3} \cdot 3^{b_1}, a contradiction.

Finally, We now rule out the case a3=5a_3 = 5. Suppose a3=5a_3 = 5. As gcd(a3k,a3)>1\text{gcd}(a_{3k}, a_3) > 1, the a3ka_{3k} are all divisible by 5. By the preceding, papp \mid a_p for all primes p3p \neq 3; as gcd(a3k,ap)=1\text{gcd}(a_{3k}, a_p) = 1 for these primes, the a3ka_{3k} are all powers of 5; say, a3k=5mka_{3k} = 5^{m_k}. By Kronecker's density theorem, as nn runs through the positive integers, the fractional parts {nlog35}\{n \log_3 5\} form a dense set in (0,1)(0, 1). Hence log32<{nlog35}<log352\log_3 2 < \{n \log_3 5\} < \log_3 \frac{5}{2} for some nn. Let k=nlog35k = \lfloor n \log_3 5 \rfloor and carry out obvious calculations to get 5n1<123k5^{n-1} < \frac{1}{2} \cdot 3^k and 23k<5n2 \cdot 3^k < 5^n. As 123k<a3k<23k\frac{1}{2} \cdot 3^k < a_{3k} < 2 \cdot 3^k, it follows that 5n1<123k<5mk<23k<5n5^{n-1} < \frac{1}{2} \cdot 3^k < 5^{m_k} < 2 \cdot 3^k < 5^n, so n1<mk<nn-1 < m_k < n. This contradiction implies a3=3a_3 = 3 and A3=B3={3}A_3 = B_3 = \{3\}, as desired.

Finally, by the preceding, A5={5}A_5 = \{5\}, as it is non-empty and disjoint from both A2A_2 and A3A_3. Now, a5<10a_5 < 10 forces a5=5a_5 = 5, so B5={5}B_5 = \{5\}.

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