Lagrange's four-square theorem

This is an old revision of this page, as edited by Onebyone (talk | contribs) at 22:47, 24 September 2003 (fix tag). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Lagrange's Four-Square Theorem, also known as Bachet's Conjecture, was proved in 1770 by Joseph Lagrange.

It states that every positive integer can be expressed as the sum of at most four squares.

More formally, for every positive integer n there exist non-negative integers a,b,c,d such that n = a2 + b2 + c2 + d2

Adrien-Marie Legendre improved on the theorem in 1798 by stating that a positive integer can be expressed as the sum of at most three squares if and only if it is not of the form (4k)(8*l-7). His proof was incomplete, leaving a gap which was later filled by Karl Friedrich Gauss.