MathLabs

Problem 6

For each positive integer nn, let S(n)S(n) be the greatest integer such that every k≤S(n)k\le S(n) permits writing n2n^2 as a sum of kk positive squares. (a) Prove S(n)≤n2−14S(n)\le n^2-14 for n≥4n\ge4; (b) find nn with equality; (c) prove infinitely many such nn.
Step 2 of 5: Reach the bound for n=13n=13
In plain words

Reach the bound for n=13n=13

169=9+4+4+152⋅12169=9+4+4+152\cdot1^2
Detailed analysis

For N=169N=169, the displayed representation has 155=N−14155=N-14 terms. Replacing four 121^2 by one 222^2 decreases the count by 3; continuing with four 222^2 and then four 424^2 gives all counts 38,35,…,11,8,538,35,\ldots,11,8,5. Finally 169=122+52169=12^2+5^2 gives count 2.