Legendre's Three-square Theorem
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, Legendre's three-square theorem states that a natural number can be represented as the sum of three squares of integers :n = x^2 + y^2 + z^2 if and only if is not of the form n = 4^a(8b + 7) for nonnegative integers and . The first numbers that cannot be expressed as the sum of three squares (i.e. numbers that can be expressed as n = 4^a(8b + 7)) are :7, 15, 23, 28, 31, 39, 47, 55, 60, 63, 71 ... .


History

Pierre de Fermat gave a criterion for numbers of the form 8''a'' + 1 and 8''a'' + 3 to be sums of a square plus twice another square, but did not provide a proof. N. Beguelin noticed in 1774 that every positive integer which is neither of the form 8''n'' + 7, nor of the form 4''n'', is the sum of three squares, but did not provide a satisfactory proof. In 1796 Gauss proved his
Eureka theorem In additive number theory, the Fermat polygonal number theorem states that every positive integer is a sum of at most -gonal numbers. That is, every positive integer can be written as the sum of three or fewer triangular numbers, and as the sum ...
that every positive integer ''n'' is the sum of 3 triangular numbers; this is equivalent to the fact that 8''n'' + 3 is a sum of three squares. In 1797 or 1798 A.-M. Legendre obtained the first proof of his 3 square theorem. In 1813, A. L. Cauchy noted that Legendre's theorem is equivalent to the statement in the introduction above. Previously, in 1801,
C. F. Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refer ...
had obtained a more general result, containing Legendre's theorem of 1797–8 as a corollary. In particular, Gauss counted the number of solutions of the expression of an integer as a sum of three squares, and this is a generalisation of yet another result of Legendre, whose proof is incomplete. This last fact appears to be the reason for later incorrect claims according to which Legendre's proof of the three-square theorem was defective and had to be completed by Gauss. With Lagrange's four-square theorem and the two-square theorem of Girard, Fermat and Euler, the Waring's problem for ''k'' = 2 is entirely solved.


Proofs

The "only if" of the theorem is simply because
modulo In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the '' modulus'' of the operation). Given two positive numbers and , modulo (often abbreviated as ) is t ...
8, every square is congruent to 0, 1 or 4. There are several proofs of the converse (besides Legendre's proof). One of them is due to J. P. G. L. Dirichlet in 1850, and has become classical. It requires three main lemmas: *the quadratic reciprocity law, *
Dirichlet's theorem on arithmetic progressions In number theory, Dirichlet's theorem, also called the Dirichlet prime number theorem, states that for any two positive coprime integers ''a'' and ''d'', there are infinitely many primes of the form ''a'' + ''nd'', where ''n'' is als ...
, and *the equivalence class of the trivial ternary
quadratic form In mathematics, a quadratic form is a polynomial with terms all of degree two ("form" is another name for a homogeneous polynomial). For example, :4x^2 + 2xy - 3y^2 is a quadratic form in the variables and . The coefficients usually belong to a ...
.


Relationship to the four-square theorem

This theorem can be used to prove Lagrange's four-square theorem, which states that all natural numbers can be written as a sum of four squares. Gauss pointed out that the four squares theorem follows easily from the fact that any positive integer that is 1 or 2 mod 4 is a sum of 3 squares, because any positive integer not divisible by 4 can be reduced to this form by subtracting 0 or 1 from it. However, proving the three-square theorem is considerably more difficult than a direct proof of the four-square theorem that does not use the three-square theorem. Indeed, the four-square theorem was proved earlier, in 1770.


See also

*
Fermat's two-square theorem In additive number theory, Fermat's theorem on sums of two squares states that an odd prime ''p'' can be expressed as: :p = x^2 + y^2, with ''x'' and ''y'' integers, if and only if :p \equiv 1 \pmod. The prime numbers for which this is true ...
*
Sum of two squares theorem In number theory, the sum of two squares theorem relates the prime decomposition of any integer to whether it can be written as a sum of two Square number, squares, such that for some integers , . :''An integer greater than one can be written as ...


Notes

{{reflist Additive number theory Squares in number theory Theorems in number theory