Worked solution: Wiles's modularity proof via the Taylor–Wiles method (1994)
For squares, has infinitely many whole-number solutions, which are the familiar Pythagorean triples. Fermat claimed in 1637 that the moment the exponent rises to or higher, not a single whole-number solution exists.
Instead of checking infinitely many exponents one by one, a simple algebraic regrouping shows that any counterexample for a composite exponent automatically creates one for or for an odd prime . Because Fermat himself handled and Leonhard Euler handled , the entire 350-year problem boils down to odd primes .
Fermat's Last Theorem asserts that has no solution in nonzero integers once . The proof by contradiction begins with a purely elementary normalization: it suffices to rule out the exponents and odd primes , with the solution taken pairwise coprime (Wiles 1995, p. 443).
Indeed, every integer is divisible either by or by an odd prime . Writing or , a putative solution rewrites as or , so any counterexample transports to one of these exponents. Fermat settled around 1660 by infinite descent — a hypothetical solution generates a strictly smaller one, contradicting the well-ordering of the positive integers — and Euler settled by 1770 through descent in (with a gap later repaired by Legendre). Coprimality costs nothing: any prime dividing two of divides the third, so dividing the triple through by produces a pairwise coprime solution of the same equation.
The surviving data — a prime and pairwise coprime nonzero with — are exactly the input that Frey's construction in Step 2 requires: the condition will be essential when Serre's irreducibility theorem is invoked for , and coprimality is what forces the discriminant computation of Step 3 into its rigid -th-power shape.
- Pairwise coprime integers
- Integers are pairwise coprime if no two of them share any prime factor (). In , any prime factor shared by two terms automatically divides the third, so dividing out common factors always leaves a pairwise coprime triple.
- Infinite descent
- A proof technique invented by Fermat in which a hypothetical positive integer solution is used to construct a strictly smaller positive integer solution. Because positive integers cannot decrease forever, no solution can exist in the first place.