Given , the sequence is such that for all , is the smallest integer greater than which is relatively prime to all the earlier terms in the sequence.
Find all for which all terms of the sequence are primes or prime powers.
Solution
1. Initial Setup and Definitions:
Given , the sequence is defined such that for all , is the smallest integer greater than which is relatively prime to all the earlier terms in the sequence. We need to find all for which all terms of the sequence are primes or prime powers.
2. Lemma 1:
Every prime divides a term in the sequence.
- Proof: Take any prime . Suppose is the least integer such that . Now let be the least such integer such that . If , then divides one of . But then we're done.
3. Corollary:
If is prime, then is one of the .
4. Sequence Behavior:
It follows that for sufficiently large , the are just a bunch of consecutive primes. Note that by the corollary, if , then is prime.
5. Prime Product Argument:
We can pick two primes and such that but .
- By Bertrand's Postulate, we can find a prime such that when .
- Let . Then we can also find a prime such that .
6. Contradiction:
- Clearly, . However, .
- We also have .
- Thus, it follows that must be one of the , leading to a contradiction. Therefore, .
7. Case Analysis:
- Checking which values of less than 16 work involves casework.
- Further analysis suggests that must be of the form except in some exceptional cases.
The final answer is must be of the form .