Legendre's Three-Square Theorem (Legendre, 1797)