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 n 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 n. Several of these proofs are described below, including Fermat's proof in the case n = 4, which is an early example of the method of infinite descent.
Fermat's Last Theorem states that no three positive integers (a, b, c) can satisfy the equation an + bn = cn for any integer value of n greater than 2. (For n equal to 1, the equation is a linear equation and has a solution for every possible a and b. For n equal to 2, the equation has infinitely many solutions, the Pythagorean triples.)
A solution (a, b, c) for a given n leads to a solution for all the factors of n: if h is a factor of n then there is an integer g such that n = gh. Then (ag, bg, cg) is a solution for the exponent h:
Therefore, to prove that Fermat's equation has no solutions for n > 2, it suffices to prove that it has no solutions for n = 4 and for all odd primes p.
For any such odd exponent p, every positive-integer solution of the equation ap + bp = cp corresponds to a general integer solution to the equation ap + bp + cp = 0. For example, if (3, 5, 8) solves the first equation, then (3, 5, −8) 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 a, b and c more apparent.
If two of the three numbers (a, b, c) can be divided by a fourth number d, then all three numbers are divisible by d. For example, if a and c are divisible by d = 13, then b 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 g represent the greatest common divisor of a, b, and c. Then (a, b, c) may be written as a = gx, b = gy, and c = gz where the three numbers (x, y, z) are pairwise coprime. In other words, the greatest common divisor (GCD) of each pair equals one
If (a, b, c) is a solution of Fermat's equation, then so is (x, y, z), since the equation
implies the equation
A pairwise coprime solution (x, y, z) 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 ...−4, −2, 0, 2, 4,... whereas the odd integers are ...−3, −1, 1, 3,.... 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., 4 + 6 = 10 and 3 + 5 = 8. Conversely, the addition or subtraction of an odd and even number is always odd, e.g., 3 + 8 = 11. 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 (x, y, z) to the equation xn + yn = zn. The terms in (x, y, z) cannot all be even, for then they would not be coprime; they could all be divided by two. If xn and yn are both even, zn would be even, so at least one of xn and yn 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 2 × 3 × 7, and no other product of prime numbers equals 42, aside from trivial rearrangements such as 7 × 3 × 2. 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 pth power of a number equals a product such as
and if u and v are coprime (share no prime factors), then u and v are themselves the pth power of two other numbers, u = rp and v = sp.
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.
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 (x, y, z) to the equation xp + yp = zp under the condition that p does not divide the product xyz. The second case (case II) corresponds to the condition that p does divide the product xyz. Since x, y, and z are pairwise coprime, p 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 n = 4, since the equation a4 + b4 = c4 can be written as c4 − b4 = (a2)2. Alternative proofs of the case n = 4 were developed later [2] by Frénicle de Bessy, [3] Euler, [4] Kausler, [5] Barlow, [6] Legendre, [7] Schopis, [8] Terquem, [9] Bertrand, [10] Lebesgue, [11] Pepin, [12] Tafelmacher, [13] Hilbert, [14] Bendz, [15] Gambioli, [16] Kronecker, [17] Bang, [18] Sommer, [19] Bottari, [20] Rychlik, [21] Nutzhorn, [22] Carmichael, [23] Hancock, [24] Vrǎnceanu, [25] Grant and Perella, [26] Barbara, [27] and Dolan. [28] For one proof by infinite descent, see Infinite descent#Non-solvability of r2 + s4 = t4.
Fermat's proof demonstrates that no right triangle with integer sides can have an area that is a square. [29] Let the right triangle have sides (u, v, w), where the area equals uv/2 and, by the Pythagorean theorem, u2 + v2 = w2. If the area were equal to the square of an integer s
then by algebraic manipulations it would also be the case that
Adding u2 + v2 = w2 to these equations gives
which can be expressed as
Multiplying these equations together yields
But as Fermat proved, there can be no integer solution to the equation x4 − y4 = z2, of which this is a special case with z = u2 − v2, x = w and y = 2s.
The first step of Fermat's proof is to factor the left-hand side [30]
Since x and y are coprime (this can be assumed because otherwise the factors could be cancelled), the greatest common divisor of x2 + y2 and x2 − y2 is either 2 (case A) or 1 (case B). The theorem is proven separately for these two cases.
In this case, both x and y are odd and z is even. Since (y2, z, x2) form a primitive Pythagorean triple, they can be written
where d and e are coprime and d > e > 0. Thus,
which produces another solution (d, e, xy) that is smaller (0 < d < x). 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 z2, they must each be a square
The numbers s and t are both odd, since s2 + t2 = 2x2, an even number, and since x and y cannot both be even. Therefore, the sum and difference of s and t are likewise even numbers, so we define integers u and v as
Since s and t are coprime, so are u and v; only one of them can be even. Since y2 = 2uv, exactly one of them is even. For illustration, let u be even; then the numbers may be written as u = 2m2 and v = k2. Since (u, v, x) form a primitive Pythagorean triple
they can be expressed in terms of smaller integers d and e using Euclid's formula
Since u = 2m2 = 2de, and since d and e are coprime, they must be squares themselves, d = g2 and e = h2. This gives the equation
The solution (g, h, k) is another solution to the original equation, but smaller (0 < g < d < x). Applying the same procedure to (g, h, k) would produce another solution, still smaller, and so on. But this is impossible, since natural numbers cannot be shrunk indefinitely. Therefore, the original solution (x, y, z) was impossible.
Fermat sent the letters in which he mentioned the case in which n = 3 in 1636, 1640 and 1657. [31] Euler sent a letter to Goldbach on 4 August 1753 in which claimed to have a proof of the case in which n = 3. [32] Euler had the complete and pure elementary proof in 1760. [33] The case n = 3 was proven by Euler in 1770. [34] [35] [36] [37] Independent proofs were published by several other mathematicians, [38] including Kausler, [5] Legendre, [7] [39] Calzolari, [40] Lamé, [41] Tait, [42] Günther, [43] Gambioli, [16] Krey, [44] Rychlik, [21] Stockhaus, [45] Carmichael, [46] van der Corput, [47] Thue, [48] and Duarte. [49]
date | result/proof | published/not published | work | name |
---|---|---|---|---|
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 n = 3 | Fermat [31] |
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 | letter to Goldbach | Euler [32] |
1760 | proof | not published | complete and pure elemental proof | Euler [33] |
1770 | proof | published | incomplete but elegant proof in Elements of Algebra | Euler [32] [34] [37] |
As Fermat did for the case n = 4, Euler used the technique of infinite descent. [50] The proof assumes a solution (x, y, z) to the equation x3 + y3 + z3 = 0, where the three non-zero integers x, y, and z are pairwise coprime and not all positive. One of the three must be even, whereas the other two are odd. Without loss of generality, z may be assumed to be even.
Since x and y are both odd, they cannot be equal. If x = y, then 2x3 = −z3, which implies that x is even, a contradiction.
Since x and y are both odd, their sum and difference are both even numbers
where the non-zero integers u and v are coprime and have different parity (one is even, the other odd). Since x = u + v and y = u − v, it follows that
Since u and v have opposite parity, u2 + 3v2 is always an odd number. Therefore, since z is even, u is even and v is odd. Since u and v are coprime, the greatest common divisor of 2u and u2 + 3v2 is either 1 (case A) or 3 (case B).
In this case, the two factors of −z3 are coprime. This implies that three does not divide u and that the two factors are cubes of two smaller numbers, r and s
Since u2 + 3v2 is odd, so is s. A crucial lemma shows that if s is odd and if it satisfies an equation s3 = u2 + 3v2, then it can be written in terms of two integers e and f
so that
u and v are coprime, so e and f must be coprime, too. Since u is even and v odd, e is even and f is odd. Since
The factors 2e, (e – 3f), and (e + 3f) are coprime since 3 cannot divide e: if e were divisible by 3, then 3 would divide u, violating the designation of u and v 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 k3 + l3 + m3 = 0. Therefore, by the argument of infinite descent, the original solution (x, y, z) was impossible.
In this case, the greatest common divisor of 2u and u2 + 3v2 is 3. That implies that 3 divides u, and one may express u = 3w in terms of a smaller integer, w. Since u is divisible by 4, so is w; hence, w is also even. Since u and v are coprime, so are v and w. Therefore, neither 3 nor 4 divide v.
Substituting u by w in the equation for z3 yields
Because v and w are coprime, and because 3 does not divide v, then 18w and 3w2 + v2 are also coprime. Therefore, since their product is a cube, they are each the cube of smaller integers, r and s
By the lemma above, since s is odd and its cube is equal to a number of the form 3w2 + v2, it too can be expressed in terms of smaller coprime numbers, e and f.
A short calculation shows that
Thus, e is odd and f is even, because v is odd. The expression for 18w then becomes
Since 33 divides r3 we have that 3 divides r, so (r/3)3 is an integer that equals 2f(e + f)(e − f). Since e and f are coprime, so are the three factors 2f, e + f, and e − f; therefore, they are each the cube of smaller integers, k, l, and m.
which yields a smaller solution k3 + l3 + m3 = 0. Therefore, by the argument of infinite descent, the original solution (x, y, z) was impossible.
Fermat's Last Theorem for n = 5 states that no three coprime integers x, y and z can satisfy the equation
This was proven [51] neither independently nor collaboratively by Dirichlet and Legendre around 1825. [32] [52] Alternative proofs were developed [53] by Gauss, [54] Lebesgue, [55] Lamé, [56] Gambioli, [16] [57] Werebrusow, [58] Rychlik, [59] van der Corput, [47] and Terjanian. [60]
Dirichlet's proof for n = 5 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 xyz. In case II, 5 does divide xyz.
date | case I/II | case II(i/ii) | name |
---|---|---|---|
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 n = 5 can be proven immediately by Sophie Germain's theorem if the auxiliary prime θ = 11. A more methodical proof is as follows. By Fermat's little theorem,
and therefore
This equation forces two of the three numbers x, y, and z to be equivalent modulo 5, which can be seen as follows: Since they are indivisible by 5, x, y and z 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, x and y can be designated as the two equivalent numbers modulo 5. That equivalence implies that
However, the equation x ≡ y (mod 5) also implies that
Combining the two results and dividing both sides by x5 yields a contradiction
Thus, case A for n = 5 has been proven.
This section is empty. You can help by adding to it. (January 2011) |
The case n = 7 was proven [61] by Gabriel Lamé in 1839. [62] His rather complicated proof was simplified in 1840 by Victor-Amédée Lebesgue, [63] and still simpler proofs [64] were published by Angelo Genocchi in 1864, 1874 and 1876. [65] Alternative proofs were developed by Théophile Pépin [66] and Edmond Maillet. [67]
Fermat's Last Theorem has also been proven for the exponents n = 6, n = 10, and n = 14. Proofs for n = 6 have been published by Kausler, [5] Thue, [68] Tafelmacher, [69] Lind, [70] Kapferer, [71] Swift, [72] and Breusch. [73] Similarly, Dirichlet [74] and Terjanian [75] each proved the case n = 14, while Kapferer [71] and Breusch [73] each proved the case n = 10. Strictly speaking, these proofs are unnecessary, since these cases follow from the proofs for n = 3, n = 5, n = 7, respectively. Nevertheless, the reasoning of these even-exponent proofs differs from their odd-exponent counterparts. Dirichlet's proof for n = 14 was published in 1832, before Lamé's 1839 proof for n = 7.
In number theory, two integers a and b are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides a does not divide b, and vice versa. This is equivalent to their greatest common divisor (GCD) being 1. One says also ais prime tob or ais coprime withb.
In mathematics, a Diophantine equation is an equation, typically a polynomial equation in two or more unknowns with integer coefficients, for which only integer solutions are of interest. A linear Diophantine equation equates to a constant the sum of two or more monomials, each of degree one. An exponential Diophantine equation is one in which unknowns can appear in exponents.
In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book Disquisitiones Arithmeticae, published in 1801.
A Pythagorean triple consists of three positive integers a, b, and c, such that a2 + b2 = c2. Such a triple is commonly written (a, b, c), and a well-known example is (3, 4, 5). If (a, b, c) is a Pythagorean triple, then so is (ka, kb, kc) for any positive integer k. A primitive Pythagorean triple is one in which a, b and c are coprime (that is, they have no common divisor larger than 1). For example, (3, 4, 5) is a primitive Pythagorean triple whereas (6, 8, 10) is not. A triangle whose sides form a Pythagorean triple is called a Pythagorean triangle, and is necessarily a right triangle.
Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form where n is a given positive nonsquare integer, and integer solutions are sought for x and y. In Cartesian coordinates, the equation is represented by a hyperbola; solutions occur wherever the curve passes through a point whose x and y coordinates are both integers, such as the trivial solution with x = 1 and y = 0. Joseph Louis Lagrange proved that, as long as n is not a perfect square, Pell's equation has infinitely many distinct integer solutions. These solutions may be used to accurately approximate the square root of n by rational numbers of the form x/y.
In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as or
In number theory, Fermat's little theorem states that if p is a prime number, then for any integer a, the number ap − a is an integer multiple of p. In the notation of modular arithmetic, this is expressed as
Catalan's conjecture (or Mihăilescu's theorem) is a theorem in number theory that was conjectured by the mathematician Eugène Charles Catalan in 1844 and proven in 2002 by Preda Mihăilescu at Paderborn University. The integers 23 and 32 are two perfect powers (that is, powers of exponent higher than one) of natural numbers whose values (8 and 9, respectively) are consecutive. The theorem states that this is the only case of two consecutive perfect powers. That is to say, that
In number theory, Euler's theorem states that, if n and a are coprime positive integers, and is Euler's totient function, then a raised to the power is congruent to 1 modulo n; that is
In mathematics, a Fermat number, named after Pierre de Fermat, the first known to have studied them, is a positive integer of the form
In number theory, a Wieferich prime is a prime number p such that p2 divides 2p − 1 − 1, therefore connecting these primes with Fermat's little theorem, which states that every odd prime p divides 2p − 1 − 1. Wieferich primes were first described by Arthur Wieferich in 1909 in works pertaining to Fermat's Last Theorem, at which time both of Fermat's theorems were already well known to mathematicians.
In number theory, a regular prime is a special kind of prime number, defined by Ernst Kummer in 1850 to prove certain cases of Fermat's Last Theorem. Regular primes may be defined via the divisibility of either class numbers or of Bernoulli numbers.
In mathematics, a proof by infinite descent, also known as Fermat's method of descent, is a particular kind of proof by contradiction used to show that a statement cannot possibly hold for any number, by showing that if the statement were to hold for a number, then the same would be true for a smaller number, leading to an infinite descent and ultimately a contradiction. It is a method which relies on the well-ordering principle, and is often used to show that a given equation, such as a Diophantine equation, has no solutions.
In additive number theory, Fermat's theorem on sums of two squares states that an odd prime p can be expressed as:
The Beal conjecture is the following conjecture in number theory:
In mathematics and statistics, sums of powers occur in a number of contexts:
In number theory, Fermat's Last Theorem states that no three positive integers a, b, and c satisfy the equation an + bn = cn for any integer value of n greater than 2. The cases n = 1 and n = 2 have been known since antiquity to have infinitely many solutions.
A pseudoprime is a probable prime that is not actually prime. Pseudoprimes are classified according to which property of primes they satisfy.
Fermat's right triangle theorem is a non-existence proof in number theory, published in 1670 among the works of Pierre de Fermat, soon after his death. It is the only complete proof given by Fermat. It has several equivalent formulations, one of which was stated in 1225 by Fibonacci. In its geometric forms, it states:
In number theory, a cyclotomic field is a number field obtained by adjoining a complex root of unity to Q, the field of rational numbers.