Olympiad Maths Prep

Track / Stage 6 / 38 of 400 #1038 of 2000

Problem 1038

National olympiad, first round
Number theory Difficulty 6.0 Prove it

6. From a set of 11 square integers, show that one can choose 6 numbers a2,b2,c2,d2,e2,f2a^{2}, b^{2}, c^{2}, d^{2}, e^{2}, f^{2} such that

a2+b2+c2d2+e2+f2(mod12) a^{2}+b^{2}+c^{2} \equiv d^{2}+e^{2}+f^{2} \quad(\bmod 12)

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution: The first observation is that we can find 5 pairs of squares such that the two numbers in a pair have the same parity. We can see this as follows:

| Odd numbers | Even numbers | Odd pairs | Even pairs | Total pairs |
| :---: | :---: | :---: | :---: | :---: |
| 0 | 11 | 0 | 5 | 5 |
| 1 | 10 | 0 | 5 | 5 |
| 2 | 9 | 1 | 4 | 5 |
| 3 | 8 | 1 | 4 | 5 |
| 4 | 7 | 2 | 3 | 5 |
| 5 | 6 | 2 | 3 | 5 |
| 6 | 5 | 3 | 2 | 5 |
| 7 | 4 | 3 | 2 | 5 |
| 8 | 3 | 4 | 1 | 5 |
| 9 | 2 | 4 | 1 | 5 |
| 10 | 1 | 5 | 0 | 5 |
| 11 | 0 | 5 | 0 | 5 |

Let us take such 5 pairs: say (x12,y12),(x22,y22),,(x52,y52)\left(x_{1}^{2}, y_{1}^{2}\right),\left(x_{2}^{2}, y_{2}^{2}\right), \ldots,\left(x_{5}^{2}, y_{5}^{2}\right). Then xj2yj2x_{j}^{2}-y_{j}^{2} is divisible by 4 for 1j51 \leq j \leq 5. Let rjr_{j} be the remainder when xj2yj2x_{j}^{2}-y_{j}^{2} is divisible by 3,1j33,1 \leq j \leq 3. We have 5 remainders r1,r2,r3,r4,r5r_{1}, r_{2}, r_{3}, r_{4}, r_{5}. But these can be 0,1 or 2 . Hence either one of the remainders occur 3 times or each of the remainders occur once. If, for example r1=r2=r3r_{1}=r_{2}=r_{3}, then 3 divides r1+r2+r3r_{1}+r_{2}+r_{3}; if r1=0,r2=1r_{1}=0, r_{2}=1 and r3=2r_{3}=2, then again 3 divides r1+r2+r3r_{1}+r_{2}+r_{3}. Thus we can always find three remainders whose sum is divisible by 3 . This means we can find 3 pairs, say, (x12,y12),(x22,y22),(x32,y32)\left(x_{1}^{2}, y_{1}^{2}\right),\left(x_{2}^{2}, y_{2}^{2}\right),\left(x_{3}^{2}, y_{3}^{2}\right) such that 3 divides (x12y12)+(x22y22)+(x32y32)\left(x_{1}^{2}-y_{1}^{2}\right)+\left(x_{2}^{2}-y_{2}^{2}\right)+\left(x_{3}^{2}-y_{3}^{2}\right). Since each difference is divisible by 4 , we conclude that we can find 6 numbers a2,b2,c2,d2,e2,f2a^{2}, b^{2}, c^{2}, d^{2}, e^{2}, f^{2} such that

a2+b2+c2d2+e2+f2(mod12) a^{2}+b^{2}+c^{2} \equiv d^{2}+e^{2}+f^{2} \quad(\bmod 12)

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