Maths Olympiad Prep

Track / Stage 7 / 191 of 300 #1591 of 1964

Problem 1591

National Olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Prove it

(GBR 2) IMO6{ }^{\mathrm{IMO} 6} For each positive integer nn, denote by s(n)s(n) the greatest integer such that for all positive integers k≤s(n),n2k \leq s(n), n^{2} can be expressed as a sum of squares of kk positive integers. (a) Prove that s(n)≤n2−14s(n) \leq n^{2}-14 for all n≥4n \geq 4. (b) Find a number nn such that s(n)=n2−14s(n)=n^{2}-14. (c) Prove that there exist infinitely many positive integers nn such that s(n)=n2−14s(n)=n^{2}-14.

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.

Next problem →

Official solution

21. (a) Representing n2n^{2} as a sum of n2−13n^{2}-13 squares is equivalent to representing 13 as a sum of numbers of the form x2−1,x∈Nx^{2}-1, x \in \mathbb{N}, such as 0,3,8,15,…0,3,8,15, \ldots But it is easy to check that this is impossible, and hence s(n)≤n2−14s(n) \leq n^{2}-14. (b) Let us prove that s(13)=132−14=155s(13)=13^{2}-14=155. Observe that 132=82+82+42+42+32=82+82+42+42+22+22+12=82+82+42+32+32+22+12+12+12 \begin{aligned} 13^{2} & =8^{2}+8^{2}+4^{2}+4^{2}+3^{2} \\ & =8^{2}+8^{2}+4^{2}+4^{2}+2^{2}+2^{2}+1^{2} \\ & =8^{2}+8^{2}+4^{2}+3^{2}+3^{2}+2^{2}+1^{2}+1^{2}+1^{2} \end{aligned} Given any representation of n2n^{2} as a sum of mm squares one of which is even, we can construct a representation as a sum of m+3m+3 squares by dividing the odd square into four equal squares. Thus the first equality enables us to construct representations with 5,8,11,…,1555,8,11, \ldots, 155 squares, the second to construct ones with 7,10,13,…,1547,10,13, \ldots, 154 squares, and the third with 9,12,…,1539,12, \ldots, 153 squares. It remains only to represent 13213^{2} as a sum of k=2,3,4,6k=2,3,4,6 squares. This can be done as follows: 132=122+52=122+42+32=112+42+42+42=122+32+22+22+22+22 \begin{aligned} 13^{2} & =12^{2}+5^{2}=12^{2}+4^{2}+3^{2} \\ & =11^{2}+4^{2}+4^{2}+4^{2}=12^{2}+3^{2}+2^{2}+2^{2}+2^{2}+2^{2} \end{aligned} (c) We shall prove that whenever s(n)=n2−14s(n)=n^{2}-14 for some n≥13n \geq 13, it also holds that s(2n)=(2n)2−14s(2 n)=(2 n)^{2}-14. This will imply that s(n)=n2−14s(n)=n^{2}-14 for any n=2t⋅13n=2^{t} \cdot 13. If n2=x12+⋯+xr2n^{2}=x_{1}^{2}+\cdots+x_{r}^{2}, then we have (2n)2=(2x1)2+⋯+(2xr)2(2 n)^{2}=\left(2 x_{1}\right)^{2}+\cdots+\left(2 x_{r}\right)^{2}. Replacing (2xi)2\left(2 x_{i}\right)^{2} with xi2+xi2+xi2+xi2x_{i}^{2}+x_{i}^{2}+x_{i}^{2}+x_{i}^{2} as long as it is possible we can obtain representations of (2n)2(2 n)^{2} consisting of r,r+3,…,4rr, r+3, \ldots, 4 r squares. This gives representations of (2n)2(2 n)^{2} into kk squares for any k≤4n2−62k \leq 4 n^{2}-62. Further, we observe that each number m≥14m \geq 14 can be written as a sum of k≥mk \geq m numbers of the form x2−1,x∈Nx^{2}-1, x \in \mathbb{N}, which is easy to verify. Therefore if k≤4n2−14k \leq 4 n^{2}-14, it follows that 4n2−k4 n^{2}-k is a sum of kk numbers of the form x2−1x^{2}-1 (since k≥4n2−k≥14k \geq 4 n^{2}-k \geq 14 ), and consequently 4n24 n^{2} is a sum of kk squares. Remark. One can find exactly the value of f(n)f(n) for each nn : f(n)={1, if n has a prime divisor congruent to 3 mod 42, if n is of the form 5⋅2k,k a positive integer; n2−14, otherwise.  f(n)= \begin{cases}1, & \text { if } n \text { has a prime divisor congruent to } 3 \bmod 4 \\ 2, & \text { if } n \text { is of the form } 5 \cdot 2^{k}, k \text { a positive integer; } \\ n^{2}-14, & \text { otherwise. }\end{cases}

Source: NuminaMath-1.5, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.