Maths Olympiad Prep

Track / Stage 6 / 372 of 400 #1372 of 1964

Problem 1372

National olympiad, first round
Number theory Difficulty 6.9 Prove it

Let a>1a > 1 be a positive integer. Prove that for some nonnegative integer nn, the number 22n+a2^{2^n}+a is not prime.

Proposed by Jack Gurev

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Assume the contrary: Suppose that for all nonnegative integers n n , the number 22n+a 2^{2^n} + a is prime. Let p=22n+a p = 2^{2^n} + a be a prime number for some n n .

2. **Valuation of p1 p-1 **: Notice that p1=22n+a1 p - 1 = 2^{2^n} + a - 1 . We need to consider the 2-adic valuation v2(p1) v_2(p-1) . Since a a is a positive integer greater than 1, v2(a1) v_2(a-1) is well-defined. Let k=v2(a1) k = v_2(a-1) . Then v2(p1)=v2(22n+a1)=v2(a1)=k v_2(p-1) = v_2(2^{2^n} + a - 1) = v_2(a-1) = k .

3. **Condition on n n **: Choose n n such that n>k+1 n > k + 1 . This ensures that 2n 2^n is much larger than k k .

4. **Expression of 22n 2^{2^n} modulo p p **: Since p=22n+a p = 2^{2^n} + a is prime, we have 22na(modp) 2^{2^n} \equiv -a \pmod{p} .

5. **Properties of 1 -1 modulo p p **: It is a well-known fact that 1 -1 can be expressed as x2m(modp) x^{2^m} \pmod{p} for mv2(p1)1 m \leq v_2(p-1) - 1 . Since v2(p1)=k v_2(p-1) = k , we have 1x2m(modp) -1 \equiv x^{2^m} \pmod{p} for mk1 m \leq k - 1 .

6. **Expression of a a modulo p p **: Since a=22n(modp) a = -2^{2^n} \pmod{p} , we can write ax2m(modp) a \equiv x^{2^m} \pmod{p} for mk1 m \leq k - 1 . This implies aodd1(modp) a^{\text{odd}} \equiv -1 \pmod{p} for some odd exponent.

7. Choosing the odd exponent: We can choose the odd exponent to be of the form 2x1 2^x - 1 for x>1 x > 1 . Thus, we have a2x11(modp) a^{2^x - 1} \equiv -1 \pmod{p} .

8. **Raising to the power 2x 2^x **: This implies a2xa(modp) a^{2^x} \equiv -a \pmod{p} . Substituting a=22n a = -2^{2^n} , we get (22n)2xa(modp) (-2^{2^n})^{2^x} \equiv -a \pmod{p} .

9. Simplifying the expression: This simplifies to 22n+xa(modp) 2^{2^{n+x}} \equiv -a \pmod{p} . Since x>1 x > 1 , let m=n+x m = n + x . Then m>n m > n and we have 22m+a0(modp) 2^{2^m} + a \equiv 0 \pmod{p} .

10. Conclusion: This implies that 22m+a 2^{2^m} + a is divisible by p p , and hence it cannot be prime (since it is greater than p p and divisible by p p ).

Therefore, our initial assumption that 22n+a 2^{2^n} + a is prime for all n n is false. Hence, for some nonnegative integer n n , the number 22n+a 2^{2^n} + a is not prime.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.