I am looking for a method (if it exists) to solve over the integers the following sum of squares equation:
$$ x_1^2 + x_2^2+x_3^2 + \cdots + x_n^2 = m,$$ with $m \in \mathbb{N}.$
Someone has any idea about books, articles dealing with this kind of problem?
Thanks in advance!
If you just want sequential integers: $\qquad m=(1^2+2^2+3^2+\dots,n^2)=\sum_{i=1}^n i^2=\dfrac{n(n+1)(2n+1)}{6}. \tag{1}$
For other sums of squares, you must know what the individual values or their limits, e.g.
$5^2+6^2+7^2+8^2\quad =\sum_{i=1}^8 i^2-\sum_{i=1}^4 i^2\quad \text{using the formula above} \tag{2}$
If you know how many square are identical, just multiply by that number those squares.
If you know sums that are discontinuous in spots, calculate the sequential parts separately as in equation $\space (2)\space$ above.
For "sum" formulas up to $x^{10}$ look here.