How many $n \in \mathbb{N}$ are there so that there exists no such $M \in \mathbb{N}$ so that $n^2 =\sum_{i=0}^{M}{a_i^2}$ for distinct $a_i \in \mathbb{N}$?
Source: http://mishabucko.wordpress.com
How many $n \in \mathbb{N}$ are there so that there exists no such $M \in \mathbb{N}$ so that $n^2 =\sum_{i=0}^{M}{a_i^2}$ for distinct $a_i \in \mathbb{N}$?
Source: http://mishabucko.wordpress.com
Halter-Koch [HK] showed that the largest integer not expressible as a sum of $5$ distinct non-zero squares with greater common divisor $1$ is $N^{*}(5)=245$. You can check the fifteen distinct squares $\le 15^2=225$ by hand. I find that
So unless I'm missing one, the only squares not expressible as sums of distinct squares are these seven: $\{1^2,2^2,3^2,4^2,6^2,8^2,12^2\}$.
[HK] F. Halter-Koch, Darstellung naturlicher Zahlen als Summe von Quadraten, Acta Arith. 42 (1982), 11–20.