Maths Olympiad Prep

Library / Slovenia — National Math Olympiad /53 of 122

Slovenia — National Math Olympiad

Number theory Difficulty 5.0 AIME, harder Prove it Slovenia

Find all prime numbers pp and qq, such that 22+p2+q22^2 + p^2 + q^2 is also prime.

Solution

If the pair (p,q)(p, q) satisfies the conditions of the problem, then so does the pair (q,p)(q, p). It is therefore sufficient to only consider the case where p≤qp \le q. Obviously, p=q=2p = q = 2 is not a solution. If pp and qq are both odd primes, then 22+p2+q22^2 + p^2 + q^2 is an even integer greater than 22, so it is not prime. Hence, p=2p = 2.

Let us figure out when the number 8+q28+q^2 is prime. If q=3q = 3, then 8+q2=178+q^2 = 17 is prime. Else, 33 divides q−1q-1 or q+1q+1, so 33 divides 9+(q−1)(q+1)=8+q29 + (q-1)(q+1) = 8+q^2 which is then not prime.

We conclude that 22+p2+q22^2 + p^2 + q^2 is prime only if p=2p = 2 and q=3q = 3 or p=3p = 3 and q=2q = 2.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.