•
Fermat's theorem on sums of two squares says which primes are sums of two squares. • The
sum of two squares theorem generalizes Fermat's theorem to specify which composite numbers are the sums of two squares. •
Legendre's three-square theorem states which numbers can be expressed as the sum of three squares • For representing an integer as a sum of squares of 4 integers, see
Lagrange's four-square theorem •
Jacobi's four-square theorem gives the number of ways that a number can be represented as the sum of four squares. • More generally, the
sum of squares function gives the number of representations of a positive integer as a sum of squares of
k integers. • For the sum of squares of consecutive integers, see
Square pyramidal number •
Pythagorean triples are sets of three integers such that the sum of the squares of the first two equals the square of the third. • A
Pythagorean prime is a prime that is the sum of two squares;
Fermat's theorem on sums of two squares states which primes are Pythagorean primes. •
Pythagorean triangles with integer altitude from the hypotenuse have the sum of squares of inverses of the integer legs equal to the square of the inverse of the integer altitude from the hypotenuse. •
Pythagorean quadruples are sets of four integers such that the sum of the squares of the first three equals the square of the fourth. • The
Basel problem, solved by Euler in terms of \pi, asked for an exact expression for the sum of the squares of the reciprocals of all positive integers. •
Rational trigonometry's triple-quad rule and triple-spread rule contain sums of squares, similar to Heron's formula. •
Squaring the square is a combinatorial problem of dividing a two-dimensional square with integer side length into smaller such squares. ==Algebra, algebraic geometry, and optimization==