Maths Olympiad Prep

Library / /2 of 5

Number theory Difficulty 5.9 AIME, harder Prove it South Africa

Determine the smallest integer k>1k > 1 such that there exist kk distinct primes whose squares sum to a power of 22.

Solution

For p12+p22p_1^2 + p_2^2 (where p1p_1 and p2p_2 are two distinct primes) to be equal to 2n2^n (where n2n \ge 2), we must have both p1p_1 and p2p_2 odd. This would give p12+p222(mod4)p_1^2 + p_2^2 \equiv 2 \pmod 4, while 2n0(mod4)2^n \equiv 0 \pmod 4, a contradiction.

For p12+p22+p32p_1^2 + p_2^2 + p_3^2 (where p1,p2p_1, p_2 and p3p_3 are three distinct primes) to be equal to 2n2^n (where n2n \ge 2), we must have (say) p1=2p_1 = 2 and both p2p_2 and p3p_3 odd. This would give p12+p22+p322(mod4)p_1^2 + p_2^2 + p_3^2 \equiv 2 \pmod 4, while 2n0(mod4)2^n \equiv 0 \pmod 4, a contradiction.

For p12+p22+p32+p42p_1^2+p_2^2+p_3^2+p_4^2 (where p1,p2,p3p_1, p_2, p_3 and p4p_4 are four distinct primes) to be equal to 2n2^n (where n3n \ge 3), we must have all four of these primes odd, say pi=2mi+1p_i = 2m_i+1, i=1,2,3,4i = 1, 2, 3, 4. This would give i=14pi2=i=14(2mi+1)2=i=14(4mi(mi+1)+1)=8L+4=2n\sum_{i=1}^4 p_i^2 = \sum_{i=1}^4 (2m_i+1)^2 = \sum_{i=1}^4 (4m_i(m_i+1)+1) = 8L+4 = 2^n for some integer LL, since each mi(mi+1)m_i(m_i+1) is even. Then 2L+1=2n22L+1 = 2^{n-2} would be a contradiction, as 2n22^{n-2} is even if n3n \ge 3.

We see that the smallest k>1k > 1 that we are looking for must satisfy k5k \ge 5. Now, for the sum of the squares of five distinct primes to be a power of 22, one of them must be 22. The sum of the squares of the five smallest primes is not a power of two, but the very next choice of smallest primes does indeed satisfy the requirement: 22+32+52+72+132=256=282^2 + 3^2 + 5^2 + 7^2 + 13^2 = 256 = 2^8. Hence k=5k = 5 is the smallest kk we are looking for.

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.