So, can $\sum_{i=1}^n i^2$ be written as a sum of $n-1$ different perfect squares? Surely if we are looking at this problem with small numbers, the answer is both yes and no. If we take $n$ to be 3, there can not be two different perfect squares numbers which satisfy the statement. If we take $n$ to be 4, we can see that $3^{2}+4^{2}=5^{2}$ which means that the statement is satisfied.
So, my truly question is: how can we find if a certain $n$ number is solution or not for this statement? (for example: Can $\sum_{i=1}^{2015} i^2$ be written as a sum of $2014$ different perfect squares?)