### Four Square Theorem

September 7, 2011 It seems that every educated person has heard of Fermat's Last Theorem, although it's likely that only the mathematically-minded can state what it is. As I wrote in a previous article (You Can Get There From Here, March 26, 2008), Fermat's Last Theorem simply states that for integers n>2, the equation,ahas no solutions other than a=b=c=0. Princeton University mathematicians Andrew Wiles and Richard Taylor proved the theorem was true in 1994, more than 350 years after it was stated. The conjecture was stated by Pierre de Fermat in 1637, famously in the margin of a copy of Arithmetica by Diophantus. Fermat claimed he had a proof that was too large to fit in the margin. There's a distant cousin to this theorem that's found also in Arithmetica. It's not quite as difficult. Lagrange proved it in 1770, and an undergraduate mathematics major can understand the short proof, which can be found here. It's called Lagrange's Four-Square Theorem, and it's simply the fact that every positive integer^{n}+ b^{n}= c^{n}

**n**can be written as the sum of four squares; that is,

n = awhere^{2}+ b^{2}+ c^{2}+ d^{2},

**a**,

**b**,

**c**and

**d**are integers. Sometimes the qualification, "at most, four squares," is used. If we allow the square of zero, that qualification isn't needed.

__Joseph Louis Lagrange__

Lagrange is known for much more than his mathematics. He's well known to physicists for the Lagrangian; and to astronomers for the Lagrangian points, to name just two.

(Via Wikimedia Commons))

Surprisingly, Euler was not able to prove the theorem himself, although he contributed a piece called the four-square identity. As usual, the theorem started as a conjecture. The conjecture, called Bachet's conjecture, was stated by Claude Gaspard Bachet de Méziriac, a French mathematician and classics scholar, who translated Diophantus' Arithmetica, with commentary, from Greek to Latin in 1621. A portion of the section of the book that describes the conjecture appears below.

*Diophantus Arithmetica, Latin translation by Bachet, 1621, top of page IIII-241. (Via Google Books).[2].*

The last line in the figure reads,

Interim libet id inductione confirmare, ostendendo propriu esse numerorum omnium ab 1 usque ad 120, ut constant ex sequenti diagrammate.Bachet then presents a table of examples for all numbers from 1 - 120 that includes the following:

In the mean time I want to confirm this by induction, specifically by showing it for all of the numbers from 1 to 120, as is evident from the following table.(My translation)

28 = 1In 1798, Adrien-Marie Legendre advanced the theorem by a partial proof that only three squares are needed to represent a positive integer, if, and only if, the integer is not of the form 2^{2}+ 1^{2}+ 1^{2}+ 5^{2}

28 = 1^{2}+ 3^{2}+ 3^{2}+ 3^{2}

28 = 2^{2}+ 2^{2}+ 2^{2}+ 4^{2}

48 = 4^{2}+ 4^{2}+ 4^{2}

48 = 2^{2}+ 2^{2}+ 2^{2}+ 6^{2}

60 = 1^{2}+ 1^{2}+ 3^{2}+ 7^{2}

60 = 1^{2}+ 3^{2}+ 5^{2}+ 5^{2}

60 = 2^{2}+ 2^{2}+ 4^{2}+ 6^{2}

112 = 2^{2}+ 2^{2}+ 2^{2}+ 10^{2}

112 = 2^{2}+ 6^{2}+ 6^{2}+ 6^{2}

112 = 4^{2}+ 4^{2}+ 4^{2}+ 8^{2}

120 = 2^{2}+ 4^{2}+ 10^{2}

^{2k}(8m + 7), where k and m are positive integers. Gauss plugged a gap in Legendre's proof. One very interesting discovery was made by Jacobi, who found that the number of ways a positive integer n can be represented as a sum of four squares is eight times the sum of the divisors of n, for odd n, and 24 times the sum of the odd divisors, for even n. Note that in order to get Jacobi's count, the numbers being squared can be negative, and you need to count all combinations of numbers; that is,

1 = 1^{2}+ 0^{2}+ 0^{2}+ 0^{2}

1 = 0^{2}+ 1^{2}+ 0^{2}+ 0^{2}

1 = (-1)^{2}+ 0^{2}+ 0^{2}+ 0^{2}

etc...

### References:

- Eric W. Weisstein, "Lagrange's Four-Square Theorem," MathWorld--A Wolfram Web Resource.
- Claude Gaspar Bachet, translator: "Diophantus of Alexandria, Arithmetica," 1621, via Google Books.

*Permanent Link to this article*

Linked Keywords: Liberal arts; Fermat's Last Theorem; mathematics; integer; equation; Princeton University; Andrew Wiles; Richard Taylor; conjecture; Arithmetica; Diophantus; Lagrange; undergraduate; Lagrange's Four-Square Theorem; square; Lagrangian; Lagrangian point; Wikimedia Commons; Euler; four-square identity; Claude Gaspard Bachet de Méziriac; French; mathematician; classics; Greek; Latin; Google Books; Adrien-Marie Legendre; if, and only if; Gauss; Jacobi's four-square theorem; Carl Gustav Jacob Jacobi; Eric W. Weisstein.

### Google Search

Latest Books by Dev Gualtieri

*Mathematics-themed novel for middle-school students*

*Complete texts of LGM, Mother Wode, and The Alchemists of Mars*

Other Books

- Sand - October 18, 2021

- Gap Elements - October 11, 2021

- Adam Adamandy Kochański - October 4, 2021

- Soda Fizz - September 27, 2021

- Shakespearean Monkeys - September 20, 2021

- Arrhenius Law - September 13, 2021

- Earth's Pulse - September 6, 2021

- Jovian Radiation - August 30, 2021

- Steven Weinberg (1933-2021) - August 23, 2021

- Anthropocene Minerals - August 16, 2021

- Elisha Gray - August 9, 2021

- Earth's Core - August 2, 2021

- A Novel Chaotic System - July 26, 2021

- Entropy and Timekeeping - July 19, 2021

- Prime Walk - July 12, 2021

- Optical Rectenna - July 5, 2021

- Dragonfly Flight - June 28, 2021

- Data Compression - June 21, 2021

- Acoustic Data Transmission - June 14, 2021

- ENIAC at 75 - June 7, 2021

- A Gigabunch of T-Rex - May 31, 2021

- Non-Standard Muon - May 24, 2021

- GRB Extinctions - May 17, 2021

- Crystallization - May 10, 2021

- Edison Battery - May 3, 2021

- Writing Magnetic Media - April 26, 2021

- Farfarout - April 19, 2021

- X-raying Sealed Letters - April 12, 2021

- Unusual Hall Effect - April 5, 2021

- Slippin' and Slidin' - March 29, 2021

- The Seven Sisters - March 22, 2021

- Counterfeit Protection - March 15, 2021

- Phosphine on Venus - March 8, 2021

- Most Distant Quasar - March 1, 2021

### Deep Archive

Deep Archive 2006-2008

**Blog Article Directory on a Single Page**