1. Assume for contradiction: Suppose the problem statement is false. Let t be the smallest positive integer that does not appear in the sequence. Therefore, there must exist N∈Z>0 such that {1,2,…,t−1}⊂{a0,a1,a2,…,aN}.
2. Define k-good numbers: A positive integer l is called *k-good* if:
- l≡0(modp1p2…pk−1)
- l≡1(modpk)
where pi is the i-th prime number.
3. Observation on k-good numbers: Note that an cannot be a k-good number for any n>N; otherwise, we would have an+1=t (since pk=p(an)∣(ant−1) and 1,2,…,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)**: We need to show that p(n)<Dlogn for some constant D and for all n.
- Let pk=p(n). By definition, p1p2…pk−1∣n, so k!<p1p2…pk−1≤n.
- Using the Prime Number Theorem and Stirling's approximation, we know that k>C1logpkpk and k!>C2(ek)k for some constants C1,C2.
- Therefore, p(n)<Dlogn for some constant D.
5. Choose large constants: Take sufficiently large constants P,Q. Since the sequence {an}n≥0 passes through each positive integer at most once, there must exist an n satisfying:
- n>P
- an>Q
- an+1>an
6. **Consider q=p(an)**: Let L be a positive integer larger than the number of k-good numbers in the sequence. Let k be such that pk=p(q−1).
- By the choice of k and the lemma, we have:
- pk∤q−1
- L⋅lcm(p1,p2,…,pk,q−1)=L⋅pk⋅(q−1)<an
- This inequality holds because q<Dlog(an) and pk<log(q−1)<Dlog(logan), and so the inequality must hold when taking an large enough.
7. Apply the Chinese Remainder Theorem: The two conditions above imply that there must exist at least L solutions smaller than an to:
- x≡0(modlcm(p1,p2,…,pk−1,q−1))
- x≡1(modpk)
Since all of these numbers are k-good and there are fewer than L k-good numbers in the sequence, one of these numbers, say c, has not appeared in the sequence and satisfies all the above conditions. Note that since q−1∣c, we must have q∣anc−1, and so an+1≤c≤an, which contradicts the choice of n.
8. Conclusion: Therefore, our initial assumption that t does not appear in the sequence is false. Hence, every positive integer appears as a term in the sequence.
■