Problem
Let be an infinite sequence of positive integers greater than . For every positive integer , let be the smallest positive integer greater than such that
Prove that there exist positive integers and such that
for every positive integer .
Solution
We use zero-based indexing in this proof, writing the sequence as .
Call a positive integer globally compatible if it has a nontrivial common divisor with every term of the sequence:
Every two sequence terms have gcd greater than , so every is globally compatible. The sequence is strictly increasing; in fact, , so it is unbounded. Moreover, the greedy rule implies that is the least globally compatible integer greater than : a globally compatible candidate automatically satisfies all the finitely many gcd conditions appearing in the original definition.
It follows that the sequence lists, in increasing order, all globally compatible integers at least . Indeed, for any such , look at the first sequence term not smaller than ; greedy minimality forces equality.
A period for global compatibility
A globally compatible integer is called minimal if it is squarefree and no proper positive divisor of is globally compatible. Every positive globally compatible is divisible by such an : first replace by the product of its distinct prime factors, which remains globally compatible, and then choose a smallest globally compatible divisor.
For each positive integer , choose an index for which is coprime to whenever such an index exists; use otherwise. Let be the finite set of all primes dividing the resulting terms , and define
Then . We claim that every minimal globally compatible integer divides .
Fix a prime , where is minimal. We prove by descent that there is another minimal globally compatible , still divisible by , such that
Start with the current minimal number . If , the descent is finished. Otherwise put . Since is a proper positive divisor of the minimal number , it is not globally compatible. Look at the first sequence term that is at least , so . If had nontrivial gcd with every for , it would be eligible at step , and greedy minimality would give . Hence , making a sequence term and therefore globally compatible, a contradiction. Thus some is coprime to .
Choose a minimal globally compatible divisor of . Then
Moreover . Otherwise the prime is coprime to , and is also coprime to because . Hence would be coprime to . This is impossible: here , so the globally compatible number occurs as a sequence term, while global compatibility of says that is noncoprime to every sequence term, including . Replace by the strictly smaller minimal number and repeat. The positive integer strictly decreases, so the process terminates and proves the descent claim.
For the resulting , put . The proper divisor is not globally compatible, so its chosen witness is coprime to . But is globally compatible and therefore is not coprime to . Hence , so . Since the original is squarefree, all its prime factors occur in , and therefore .
Now let . If , choose a minimal globally compatible divisor . Since , we get , hence . Conversely, if , choose a minimal globally compatible . Again , so , and therefore . Thus we have the periodicity relation :
Translating the greedy enumeration
Since , relation gives . Because the sequence enumerates all globally compatible integers from onward, there is an index such that
As and the sequence is strictly increasing, .
We prove by induction on that
The case is the definition of . Suppose the identity holds at . The number is the least globally compatible integer greater than , so periodicity makes globally compatible and greater than . Conversely, if a globally compatible integer is greater than , then , and shows that is globally compatible. Thus , proving that is the least globally compatible integer greater than . The greedy definition identifies this least integer with . Hence
completing the induction. Therefore there exist positive integers such that