Maths Olympiad Prep

Library / /468 of 520

Combinatorics Difficulty 7.5 National olympiad, round 2 Prove it

For a positive integer kk, let p(k)p(k) be the smallest prime that does not divide kk. Given a positive integer aa, define the infinite sequence a0,a1,a_0, a_1, \ldots by a0=aa_0 = a and, for n>0n > 0, ana_n is the smallest positive integer with the following properties:

ana_n has not yet appeared in the sequence, that is, anaia_n \neq a_i for 0i<n0 \leq i < n;

(an1)an1(a_{n-1})^{a_n} - 1 is a multiple of p(an1)p(a_{n-1}).

Prove that every positive integer appears as a term in the sequence, that is, for every positive integer mm there is nn such that an=ma_n = m.

Solution

1. Assume for contradiction: Suppose the problem statement is false. Let t t be the smallest positive integer that does not appear in the sequence. Therefore, there must exist NZ>0 N \in \mathbb{Z}_{>0} such that {1,2,,t1}{a0,a1,a2,,aN} \{1, 2, \dots, t-1\} \subset \{a_0, a_1, a_2, \dots, a_N\} .

2. Define k-good numbers: A positive integer l l is called *k-good* if:
- l0(modp1p2pk1) l \equiv 0 \pmod{p_1 p_2 \dots p_{k-1}}
- l1(modpk) l \equiv 1 \pmod{p_k}
where pi p_i is the i i -th prime number.

3. Observation on k-good numbers: Note that an a_n cannot be a k-good number for any n>N n > N ; otherwise, we would have an+1=t a_{n+1} = t (since pk=p(an)(ant1) p_k = p(a_n) \mid (a_n^t - 1) and 1,2,,t1 1, 2, \dots, t-1 have already appeared), which contradicts our assumption. Therefore, there are finitely many k-good numbers that appear in the sequence.

4. **Lemma on p(n) p(n) **: We need to show that p(n)<Dlogn p(n) < D \log n for some constant D D and for all n n .

- Let pk=p(n) p_k = p(n) . By definition, p1p2pk1n p_1 p_2 \dots p_{k-1} \mid n , so k!<p1p2pk1n k! < p_1 p_2 \dots p_{k-1} \le n .
- Using the Prime Number Theorem and Stirling's approximation, we know that k>C1pklogpk k > C_1 \frac{p_k}{\log p_k} and k!>C2(ke)k k! > C_2 \left(\frac{k}{e}\right)^k for some constants C1,C2 C_1, C_2 .
- Therefore, p(n)<Dlogn p(n) < D \log n for some constant D D .

5. Choose large constants: Take sufficiently large constants P,Q P, Q . Since the sequence {an}n0 \{a_n\}_{n \ge 0} passes through each positive integer at most once, there must exist an n n satisfying:
- n>P n > P
- an>Q a_n > Q
- an+1>an a_{n+1} > a_n

6. **Consider q=p(an) q = p(a_n) **: Let L L be a positive integer larger than the number of k-good numbers in the sequence. Let k k be such that pk=p(q1) p_k = p(q-1) .

- By the choice of k k and the lemma, we have:
- pkq1 p_k \nmid q-1
- Llcm(p1,p2,,pk,q1)=Lpk(q1)<an L \cdot \text{lcm}(p_1, p_2, \dots, p_k, q-1) = L \cdot p_k \cdot (q-1) < a_n
- This inequality holds because q<Dlog(an) q < D \log(a_n) and pk<log(q1)<Dlog(logan) p_k < \log(q-1) < D \log(\log a_n) , and so the inequality must hold when taking an a_n large enough.

7. Apply the Chinese Remainder Theorem: The two conditions above imply that there must exist at least L L solutions smaller than an a_n to:
- x0(modlcm(p1,p2,,pk1,q1)) x \equiv 0 \pmod{\text{lcm}(p_1, p_2, \dots, p_{k-1}, q-1)}
- x1(modpk) x \equiv 1 \pmod{p_k}

Since all of these numbers are k-good and there are fewer than L L k-good numbers in the sequence, one of these numbers, say c c , has not appeared in the sequence and satisfies all the above conditions. Note that since q1c q-1 \mid c , we must have qanc1 q \mid a_n^c - 1 , and so an+1can a_{n+1} \le c \le a_n , which contradicts the choice of n n .

8. Conclusion: Therefore, our initial assumption that t t does not appear in the sequence is false. Hence, every positive integer appears as a term in the sequence.

\blacksquare

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.