Skip to main content
OlympiadHQ

Browse · MathNet

Print

XXIII OBM

Brazil number theory

Problem

For a given integer one defines a sequence as follows: for each , define as the smallest integer greater than such that . Determine all values for which all terms are primes or powers of primes.
Solution
We show first that if (1) is prime, (2) all terms for are primes or prime powers, (3) given any prime , we have for some , then is prime for all . For suppose , where is the next larger prime than . Then lies between two consecutive primes, so it must be composite. So it must have a prime factor less than . By (3) that must divide for some . Hence . On the other hand is obviously coprime to all for , so .

gives all terms primes. gives , and hence all higher terms prime. gives , , , , and hence all higher terms prime. gives , which is not a prime or prime power. is not a prime or prime power. gives , , , , , , , , , and hence all higher terms prime. gives 9, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 49, 53 and hence all higher terms prime. gives , which is not a prime or prime power.

Now suppose . We show first that there are no solutions to for . Consider . If , then , so is divisible by 4, so must be even. Put . Then . But and cannot both be powers of 2 for , so there are no solutions for . Consider . Again , so must be even. Put , then . But and cannot both be powers of 3 for . So there are no solutions for .

Now if , then is obviously not a prime power. If , then , which is not a prime power. If , then , which is divisible by 2. So if it is a prime power, then it must be a power of 2. But , which is divisible by 3, so it can only be a prime power if it is a power of 3. We have just shown that is impossible for . Thus fails for . Similarly, if , then must be a power of 2, and must be a power of 3, which is impossible for . Similarly, if , and again they cannot both be prime powers.

We claim that there are no solutions to for . Putting , we see that must be even. Putting , we see that must be even. Put , , then , so . But that is impossible for and hence . It is easy to see that and are not powers of 2. If then , , . Then must be a power of 2 and must be a power of 3. But we have just shown that is impossible for .
Final answer
a0 ∈ {2, 3, 4, 7, 8}

Techniques

Greatest common divisors (gcd)Prime numbersTechniques: modulo, size analysis, order analysis, inequalitiesRecurrence relations