http://www.scientificlib.com/en/Mathematics/NumberTheory/EulersFourSquareIdentity.html
http://www.scientificlib.com/en/Mathematics/NumberTheory/LagrangeFourSquareTheorem.html