Daily

Random

Practice set

Baltic Way 2010 · Problem 19

Number Theory

For which kk do there exist kk pairwise distinct primes p1,p2,…,pkp_{1}, p_{2}, \ldots, p_{k} such that

p12+p22+⋯+pk2=2010?p_{1}^{2}+p_{2}^{2}+\cdots+p_{k}^{2}=2010 ?
Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Diophantine equations · Primes · Divisibility and factorization

Solutions

Solution

We show that it is possible only if k=7k = 7. The 15 smallest prime squares are: 4, 9, 25, 49, 121, 169, 289, 361, 529, 841, 961, 1369, 1681, 1849, 2209. Since 2209>20102209 > 2010 we see that k≤14k \le 14. Now we note that p2≡1mod  8p^2 \equiv 1 \mod 8 if pp is an odd prime. We also have that 2010≡2mod  82010 \equiv 2 \mod 8. If all the primes are odd, then writing the original equation modulo 8 we get

k⋅1≡2mod  8k \cdot 1 \equiv 2 \mod 8

so either k=2k = 2 or k=10k = 10. k=2k = 2: As 2010≡0mod  32010 \equiv 0 \mod 3 and x2≡0x^2 \equiv 0 or x2≡1mod  3x^2 \equiv 1 \mod 3 we conclude that p1≡p2≡0mod  3p_1 \equiv p_2 \equiv 0 \mod 3. But that is impossible. k=10k = 10: The sum of first 10 odd prime squares is already greater than 20102010 (961+841+529+⋯>2010961 + 841 + 529 + \cdots > 2010) so this is impossible. Now we consider the case when one of the primes is 2. Then the original equation modulo 8 takes the form

4+(k−1)⋅1≡2mod  84 + (k - 1) \cdot 1 \equiv 2 \mod 8

so k≡7mod  8k \equiv 7 \mod 8 and therefore k=7k = 7. For k=7k = 7 there are 4 possible solutions:

4+9+49+169+289+529+961=2010,4 + 9 + 49 + 169 + 289 + 529 + 961 = 2010, 4+9+25+121+361+529+961=2010,4 + 9 + 25 + 121 + 361 + 529 + 961 = 2010, 4+9+25+49+121+841+961=2010,4 + 9 + 25 + 49 + 121 + 841 + 961 = 2010, 4+9+49+121+169+289+1369=2010.4 + 9 + 49 + 121 + 169 + 289 + 1369 = 2010.

Finding them should not be too hard. We are already assuming that 4 is included. Considerations modulo 3 show that 9 must also be included. The square 1681 together with the 6 smallest prime squares gives a sum already greater than 2010, so only prime squares up to 372=136937^2 = 1369 can

Contest context

Results from Baltic Way 2010

10 teams

Mean score
3.8 / 5
Scores of 4 or 5
6 / 10
Estonia
5 / 5

Score distribution

00
10
22
32
42
54
All team scores
TeamScore
Poland5 / 5
Lithuania3 / 5
Germany2 / 5
Latvia4 / 5
Denmark5 / 5
Sweden3 / 5
Estonia5 / 5
Norway4 / 5
Finland2 / 5
Iceland5 / 5