Maths Olympiad Prep

Track / Stage 7 / 177 of 300 #1577 of 1964

Problem 1577

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

21. (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 ks(n),n2k \leq s(n), n^{2} can be expressed as a sum of squares of kk positive integers. (a) Prove that s(n)n214s(n) \leq n^{2}-14 for all n4n \geq 4. (b) Find a number nn such that s(n)=n214s(n)=n^{2}-14. (c) Prove that there exist infinitely many positive integers nn such that s(n)=n214s(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.

Official solution

21. (a) Representing n2n^{2} as a sum of n213n^{2}-13 squares is equivalent to representing 13 as a sum of numbers of the form x21,xNx^{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)n214s(n) \leq n^{2}-14. (b) Let us prove that s(13)=13214=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)=n214s(n)=n^{2}-14 for some n13n \geq 13, it also holds that s(2n)=(2n)214s(2 n)=(2 n)^{2}-14. This will imply that s(n)=n214s(n)=n^{2}-14 for any n=2t13n=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 k4n262k \leq 4 n^{2}-62. Further, we observe that each number m14m \geq 14 can be written as a sum of kmk \geq m numbers of the form x21,xNx^{2}-1, x \in \mathbb{N}, which is easy to verify. Therefore if k4n214k \leq 4 n^{2}-14, it follows that 4n2k4 n^{2}-k is a sum of kk numbers of the form x21x^{2}-1 (since k4n2k14k \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 3mod42, if n is of the form 52k,k a positive integer; n214, 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 and solution reproduced as published; topic, difficulty and ordering added by this site.