Maths Olympiad Prep

Library / /4 of 4

Number theory Difficulty 7.1 National olympiad, round 2 Prove it Brazil

For a given integer a0>1a_0 > 1 one defines a sequence (an)n0(a_n)_{n \ge 0} as follows: for each k0k \ge 0, define ak+1a_{k+1} as the smallest integer greater than aka_k such that gcd(ak+1,a0a1ak)=1\text{gcd}(a_{k+1}, a_0 a_1 \cdots a_k) = 1. Determine all values a0a_0 for which all terms aka_k are primes or powers of primes.

Solution

We show first that if (1) ana_n is prime, (2) all terms aia_i for i<ni < n are primes or prime powers, (3) given any prime p<anp < a_n, we have paip \mid a_i for some i<ni < n, then aia_i is prime for all i>ni > n. For suppose an<k<qa_n < k < q, where qq is the next larger prime than ana_n. Then kk lies between two consecutive primes, so it must be composite. So it must have a prime factor less than ana_n. By (3) that must divide aia_i for some i<ni < n. Hence an+1ka_{n+1} \neq k. On the other hand qq is obviously coprime to all aia_i for ini \le n, so an+1=qa_{n+1} = q.

* a0=2a_0 = 2 gives all terms primes.
* a0=3a_0 = 3 gives a1=4a_1 = 4, a2=5a_2 = 5 and hence all higher terms prime.
* a0=4a_0 = 4 gives a1=5a_1 = 5, a2=7a_2 = 7, a3=9a_3 = 9, a4=11a_4 = 11, and hence all higher terms prime.
* a0=5a_0 = 5 gives a1=6a_1 = 6, which is not a prime or prime power.
* a0=6a_0 = 6 is not a prime or prime power.
* a0=7a_0 = 7 gives a1=8a_1 = 8, a2=9a_2 = 9, a3=11a_3 = 11, a4=13a_4 = 13, a5=17a_5 = 17, a6=19a_6 = 19, a7=23a_7 = 23, a8=25a_8 = 25, a9=29a_9 = 29, and hence all higher terms prime.
* a0=8a_0 = 8 gives 9, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 49, 53 and hence all higher terms prime.
* a0=9a_0 = 9 gives a1=10a_1 = 10, which is not a prime or prime power.

Now suppose a0>9a_0 > 9. We show first that there are no solutions to 3k=2h±13^k = 2^h \pm 1 for k>2k > 2. Consider 3k=2h+13^k = 2^h+1. If k>2k > 2, then h>3h > 3, so 3k1=(41)k13^k - 1 = (4-1)^k - 1 is divisible by 4, so kk must be even. Put k=2mk = 2m. Then 2h=(3m+1)(3m1)2^h = (3^m+1)(3^m-1). But 3m13^m - 1 and 3m+13^m + 1 cannot both be powers of 2 for m>1m > 1, so there are no solutions for k>2k > 2. Consider 3k=2h13^k = 2^h - 1. Again 2=(31)2 = (3-1), so hh must be even. Put h=2mh = 2m, then 3k=(2m1)(2m+1)3^k = (2^m-1)(2^m+1). But 2m12^m - 1 and 2m+12^m + 1 cannot both be powers of 3 for m>1m > 1. So there are no solutions for k>2k > 2.

Now if a0=6na_0 = 6n, then a0a_0 is obviously not a prime power. If a0=6n1a_0 = 6n - 1, then a1=6na_1 = 6n, which is not a prime power. If a0=6n+1a_0 = 6n + 1, then a1=6n+2a_1 = 6n + 2, which is divisible by 2. So if it is a prime power, then it must be a power of 2. But a2=6n+3a_2 = 6n + 3, 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 a0>9a_0 > 9. Thus
a0=6n+1a_0 = 6n+1 fails for a0>9a_0 > 9. Similarly, if a0=6n+2a_0 = 6n+2, then a0a_0 must be a power of 2, and a1=6n+3a_1 = 6n+3 must be a power of 3, which is impossible for a0>9a_0 > 9. Similarly, if a0=6n+3a_0 = 6n+3, a1=6n+4a_1 = 6n+4 and again they cannot both be prime powers.

We claim that there are no solutions to 3k=2h+53^k = 2^h + 5 for k>2k > 2. Putting 3=413 = 4-1, we see that kk must be even. Putting 2=312 = 3-1, we see that hh must be even. Put k=2Kk = 2K, h=2Hh = 2H, then 32K22H=53^{2K}-2^{2H} = 5, so (3K+2H)(3K2H)=5(3^K+2^H)(3^K-2^H) = 5. But that is impossible for K>2K > 2 and hence k>4k > 4. It is easy to see that 3453^4-5 and 3353^3-5 are not powers of 2. If a0=6n2a_0 = 6n-2 then a1=6n1a_1 = 6n-1, a2=6n+1a_2 = 6n+1, a3=6n+3a_3 = 6n+3. Then a0a_0 must be a power of 2 and a3a_3 must be a power of 3. But we have just shown that is impossible for a0>9a_0 > 9.

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: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.