Fermat's Last Theorem is a theorem in number theory, originally stated by Pierre de Fermat in 1637 and proven by Andrew Wiles in 1995. The statement of the theorem involves an integer exponent larger than 2. In the centuries following the initial statement of the result and before its general proof, various proofs were devised for particular values of the exponent . Several of these proofs are described below, including Fermat's proof in the case, which is an early example of the method of infinite descent.
Fermat's Last Theorem states that no three positive integers can satisfy the equation for any integer value of greater than 2. (For equal to 1, the equation is a linear equation and has a solution for every possible and . For equal to 2, the equation has infinitely many solutions, the Pythagorean triples.)
A solution for a given leads to a solution for all the factors of : if is a factor of then there is an integer such that . Then is a solution for the exponent :
.
Therefore, to prove that Fermat's equation has no solutions for, it suffices to prove that it has no solutions for and for all odd primes .
For any such odd exponent, every positive-integer solution of the equation corresponds to a general integer solution to the equation . For example, if solves the first equation, then solves the second. Conversely, any solution of the second equation corresponds to a solution to the first. The second equation is sometimes useful because it makes the symmetry between the three variables, and more apparent.
If two of the three numbers can be divided by a fourth number, then all three numbers are divisible by . For example, if and are divisible by, then is also divisible by 13. This follows from the equation
If the right-hand side of the equation is divisible by 13, then the left-hand side is also divisible by 13. Let represent the greatest common divisor of,, and . Then may be written as,, and where the three numbers are pairwise coprime. In other words, the greatest common divisor of each pair equals one
If is a solution of Fermat's equation, then so is, since the equation
implies the equation
.
A pairwise coprime solution is called a primitive solution. Since every solution to Fermat's equation can be reduced to a primitive solution by dividing by their greatest common divisor g, Fermat's Last Theorem can be proven by demonstrating that no primitive solutions exist.
Integers can be divided into even and odd, those that are evenly divisible by two and those that are not. The even integers are whereas the odd integers are . The property of whether an integer is even (or not) is known as its parity. If two numbers are both even or both odd, they have the same parity. By contrast, if one is even and the other odd, they have different parity.
The addition, subtraction and multiplication of even and odd integers obey simple rules. The addition or subtraction of two even numbers or of two odd numbers always produces an even number, e.g., and . Conversely, the addition or subtraction of an odd and even number is always odd, e.g., . The multiplication of two odd numbers is always odd, but the multiplication of an even number with any number is always even. An odd number raised to a power is always odd and an even number raised to power is always even, so for example xn has the same parity as x.
Consider any primitive solution to the equation . The terms in cannot all be even, for then they would not be coprime; they could all be divided by two. If and are both even, would be even, so at least one of and are odd. The remaining addend is either even or odd; thus, the parities of the values in the sum are either (odd + even = odd) or (odd + odd = even).
The fundamental theorem of arithmetic states that any natural number can be written in only one way (uniquely) as the product of prime numbers. For example, 42 equals the product of prime numbers, and no other product of prime numbers equals 42, aside from trivial rearrangements such as . This unique factorization property is the basis on which much of number theory is built.
One consequence of this unique factorization property is that if a th power of a number equals a product such as
and if and are coprime (share no prime factors), then and are themselves the th power of two other numbers, and .
As described below, however, some number systems do not have unique factorization. This fact led to the failure of Lamé's 1847 general proof of Fermat's Last Theorem.
See main article: Sophie Germain's theorem. Since the time of Sophie Germain, Fermat's Last Theorem has been separated into two cases that are proven separately. The first case (case I) is to show that there are no primitive solutions to the equation under the condition that does not divide the product . The second case (case II) corresponds to the condition that does divide the product . Since,, and are pairwise coprime, divides only one of the three numbers.
Only one mathematical proof by Fermat has survived, in which Fermat uses the technique of infinite descent to show that the area of a right triangle with integer sides can never equal the square of an integer.[1] This result is known as Fermat's right triangle theorem. As shown below, his proof is equivalent to demonstrating that the equation
has no primitive solutions in integers (no pairwise coprime solutions). In turn, this is sufficient to prove Fermat's Last Theorem for the case, since the equation can be written as . Alternative proofs of the case were developed later[2] by Frénicle de Bessy,[3] Euler,[4] Kausler, Barlow,[5] Legendre, Schopis,[6] Terquem,[7] Bertrand,[8] Lebesgue,[9] Pepin,[10] Tafelmacher,[11] Hilbert,[12] Bendz,[13] Gambioli, Kronecker,[14] Bang,[15] Sommer,[16] Bottari,[17] Rychlik, Nutzhorn,[18] Carmichael,[19] Hancock,[20] Vrǎnceanu,[21] Grant and Perella,[22] Barbara,[23] and Dolan.[24] For one proof by infinite descent, see Infinite descent#Non-solvability of .
Fermat's proof demonstrates that no right triangle with integer sides can have an area that is a square.[25] Let the right triangle have sides, where the area equals and, by the Pythagorean theorem, . If the area were equal to the square of an integer
then by algebraic manipulations it would also be the case that
and .
Adding to these equations gives
and,
which can be expressed as
and .
Multiplying these equations together yields
.
But as Fermat proved, there can be no integer solution to the equation, of which this is a special case with, and .
The first step of Fermat's proof is to factor the left-hand side[26]
Since and are coprime (this can be assumed because otherwise the factors could be cancelled), the greatest common divisor of and is either 2 (case A) or 1 (case B). The theorem is proven separately for these two cases.
In this case, both and are odd and is even. Since form a primitive Pythagorean triple, they can be written
where and are coprime and . Thus,
which produces another solution that is smaller . As before, there must be a lower bound on the size of solutions, while this argument always produces a smaller solution than any given one, and thus the original solution is impossible.
In this case, the two factors are coprime. Since their product is a square, they must each be a square
The numbers and are both odd, since, an even number, and since and cannot both be even. Therefore, the sum and difference of and are likewise even numbers, so we define integers and as
Since and are coprime, so are and ; only one of them can be even. Since, exactly one of them is even. For illustration, let be even; then the numbers may be written as and . Since form a primitive Pythagorean triple
they can be expressed in terms of smaller integers and using Euclid's formula
Since, and since and are coprime, they must be squares themselves, and . This gives the equation
The solution is another solution to the original equation, but smaller . Applying the same procedure to would produce another solution, still smaller, and so on. But this is impossible, since natural numbers cannot be shrunk indefinitely. Therefore, the original solution was impossible.
Fermat sent the letters in which he mentioned the case in which in 1636, 1640 and 1657.Euler sent a letter to Goldbach on 4 August 1753 in which claimed to have a proof of the case in which .Euler had a complete and pure elementary proof in 1760, but the result was not published.Later, Euler's proof for was published in 1770.[27] [28] [29] Independent proofs were published by several other mathematicians,[30] including Kausler,[31] Legendre,[32] [33] Calzolari,[34] Lamé,[35] Tait,[36] Günther,[37] Gambioli,[38] Krey,[39] Rychlik,[40] Stockhaus,[41] Carmichael,[42] van der Corput,[43] Thue,[44] and Duarte.[45]
1621 | none | published | Latin version of Diophantus's Arithmetica | Bachet | |
---|---|---|---|---|---|
around 1630 | only result | not published | a marginal note in Arithmetica | Fermat | |
1636, 1640, 1657 | only result | published | letters of | Fermat | |
1670 | only result | published | a marginal note in Arithmetica | Fermat's son Samuel published the Arithmetica with Fermat's note. | |
4 August 1753 | only result | published | Euler | ||
1760 | proof | not published | complete and pure elemental proof | Euler | |
1770 | proof | published | incomplete but elegant proof in Elements of Algebra | Euler |
As Fermat did for the case, Euler used the technique of infinite descent.[46] The proof assumes a solution to the equation, where the three non-zero integers,, and are pairwise coprime and not all positive. One of the three must be even, whereas the other two are odd. Without loss of generality, may be assumed to be even.
Since and are both odd, they cannot be equal. If, then, which implies that is even, a contradiction.
Since and are both odd, their sum and difference are both even numbers
where the non-zero integers and are coprime and have different parity (one is even, the other odd). Since and, it follows that
Since and have opposite parity, is always an odd number. Therefore, since is even, is even and is odd. Since and are coprime, the greatest common divisor of and is either 1 (case A) or 3 (case B).
In this case, the two factors of are coprime. This implies that three does not divide and that the two factors are cubes of two smaller numbers, and
Since is odd, so is . A crucial lemma shows that if is odd and if it satisfies an equation, then it can be written in terms of two integers and
so that
and are coprime, so and must be coprime, too. Since is even and odd, is even and is odd. Since
The factors,, and are coprime since 3 cannot divide : if were divisible by 3, then 3 would divide, violating the designation of and as coprime. Since the three factors on the right-hand side are coprime, they must individually equal cubes of smaller integers
which yields a smaller solution . Therefore, by the argument of infinite descent, the original solution was impossible.
In this case, the greatest common divisor of and is 3. That implies that 3 divides, and one may express in terms of a smaller integer, . Since is divisible by 4, so is ; hence, is also even. Since and are coprime, so are and . Therefore, neither 3 nor 4 divide .
Substituting by in the equation for yields
Because and are coprime, and because 3 does not divide, then and are also coprime. Therefore, since their product is a cube, they are each the cube of smaller integers, and
By the lemma above, since is odd and its cube is equal to a number of the form, it too can be expressed in terms of smaller coprime numbers, and .
A short calculation shows that
Thus, is odd and is even, because is odd. The expression for then becomes
.
Since divides we have that 3 divides r, so is an integer that equals . Since and are coprime, so are the three factors,, and ; therefore, they are each the cube of smaller integers, k, l, and m.
which yields a smaller solution . Therefore, by the argument of infinite descent, the original solution was impossible.
Fermat's Last Theorem for states that no three coprime integers, and can satisfy the equation
This was proven[47] neither independently nor collaboratively by Dirichlet and Legendre around 1825.[48] Alternative proofs were developed[49] by Gauss,[50] Lebesgue,[51] Lamé,[52] Gambioli,[38] [53] Werebrusow,[54] Rychlik,[55] van der Corput,[43] and Terjanian.[56]
Dirichlet's proof for is divided into the two cases (cases I and II) defined by Sophie Germain. In case I, the exponent 5 does not divide the product . In case II, 5 does divide .
1823 | case I | Germain | |
---|---|---|---|
July 1825 | case II | case II(i) | Dirichlet |
September 1825 | case II(ii) | Legendre | |
after September 1825 | Dirichlet |
Case A for can be proven immediately by Sophie Germain's theorem if the auxiliary prime . A more methodical proof is as follows. By Fermat's little theorem,
and therefore
This equation forces two of the three numbers,, and to be equivalent modulo 5, which can be seen as follows: Since they are indivisible by 5,, and cannot equal 0 modulo 5, and must equal one of four possibilities: 1, −1, 2, or −2. If they were all different, two would be opposites and their sum modulo 5 would be zero (implying contrary to the assumption of this case that the other one would be 0 modulo 5).
Without loss of generality, and can be designated as the two equivalent numbers modulo 5. That equivalence implies that
(note change in modulus)
However, the equation also implies that
Combining the two results and dividing both sides by yields a contradiction
Thus, case A for has been proven.
The case was proven[57] by Gabriel Lamé in 1839.[58] His rather complicated proof was simplified in 1840 by Victor-Amédée Lebesgue,[59] and still simpler proofs[60] were published by Angelo Genocchi in 1864, 1874 and 1876.[61] Alternative proofs were developed by Théophile Pépin[62] and Edmond Maillet.[63]
Fermat's Last Theorem has also been proven for the exponents,, and . Proofs for have been published by Kausler,[31] Thue,[64] Tafelmacher,[65] Lind,[66] Kapferer,[67] Swift,[68] and Breusch.[69] Similarly, Dirichlet[70] and Terjanian[71] each proved the case, while Kapferer[67] and Breusch[69] each proved the case . Strictly speaking, these proofs are unnecessary, since these cases follow from the proofs for,,, respectively. Nevertheless, the reasoning of these even-exponent proofs differs from their odd-exponent counterparts. Dirichlet's proof for was published in 1832, before Lamé's 1839 proof for .