# Fermat's Last Theorem

> No three positive whole numbers can satisfy a to the n plus b to the n equals c to the n for any power above two.

**Field:** Mathematics & proof · **Reliability:** Empirical · **Coined:** 1637 · **Named after:** Pierre de Fermat

*Also known as: Fermat's conjecture; FLT*

## What it means

Fermat's Last Theorem states that no three positive integers a, b, and c can satisfy the equation a to the power n plus b to the power n equals c to the power n whenever the exponent n is an integer greater than two. For the exponent two the equation is just the Pythagorean relation, which has infinitely many whole-number solutions, the Pythagorean triples like three, four, five. Fermat's claim is that this abundance vanishes the moment the power exceeds two: no solutions exist at all. Scrawled by Pierre de Fermat around 1637 in the margin of a book, alongside the tantalising note that he had a marvellous proof too large to fit, it became the most famous unsolved problem in mathematics, resisting proof for over three hundred and fifty years.

## How it works

The difficulty is that a single clean statement conceals infinitely many separate cases, one for each exponent, and no elementary method dispatches them all. Progress came case by case: Fermat himself proved the exponent four using his method of infinite descent, Euler settled the cube, and Sophie Germain, Dirichlet, Legendre, and Kummer extended the range with ever deeper number theory, Kummer covering all so-called regular primes with his theory of ideal numbers. It suffices to prove the theorem for the exponent four and for every odd prime, since any other exponent shares a factor with one of these. The final proof came from an unexpected direction: Andrew Wiles proved that certain elliptic curves are modular, which by Ribet's theorem forces a solution to Fermat's equation to be impossible.

## Examples

- **In the wild · Nov 2026:** On 9 November 2026 Anthropic said a team of 1,000 Claude Fable 5.2 agents formalized the proof of Fermat's Last Theorem in the Lean language in about 30 hours, starting from lemmas its first, 11-day formalization had already proved. The figures are the company's own. The theorem takes one line to state, yet checking its proof every step of the way by machine is still a job measured in days and hours.
- **The margin note:** Fermat wrote in his copy of Diophantus's Arithmetica that he had discovered a truly marvellous proof which the margin was too narrow to contain, a claim historians doubt he could fully back.
- **Euler and the cube:** Leonhard Euler proved the case of the exponent three, published in his Algebra of 1770, one of the earliest exponents settled after Fermat's own proof for the fourth power.
- **Wiles's proof:** Andrew Wiles announced a proof in 1993; a gap was found and repaired with Richard Taylor, and the completed work was published in 1995, ending a 358-year search.

## Why it matters

Fermat's Last Theorem is the most celebrated problem in the history of mathematics, a deceptively simple statement whose three-and-a-half-century resistance drove the development of algebraic number theory, from Kummer's ideal numbers to the modern machinery of elliptic curves, modular forms, and Galois representations. Wiles's 1995 proof is a landmark of twentieth-century mathematics, uniting fields that had seemed distant and vindicating decades of work on the modularity conjecture. Wiles received the Abel Prize in 2016 for the achievement. The saga is also a lesson in mathematical humility, since Fermat's own claimed proof was almost certainly mistaken, given that the eventual proof used tools centuries beyond his reach.

## Where it breaks down

The theorem is specific to exponents greater than two and to positive integers; the exponent two has infinitely many solutions, and allowing zero or non-integer values changes everything. Fermat's own marginal claim of a proof is not part of the established result and is generally regarded as unfounded, since no elementary proof is known and the accepted proof relies on twentieth-century mathematics far beyond his tools. The proof, while complete and checked, is long and highly technical, so the theorem is easy to state but understood in full by relatively few, and it settles a single equation rather than a broad family, its depth lying in the methods it required.

## Common misreadings

The theorem is not that the equation never balances for any exponent; for the power two it has infinitely many solutions, the Pythagorean triples, and the claim is only about powers above two. Fermat almost certainly did not possess a valid general proof, so his margin note is a historical curiosity, not evidence. And Wiles's proof does not exhibit or rule out particular numbers by search; it argues indirectly that any solution would contradict the modularity of elliptic curves, an impossibility, so the theorem holds for all exponents above two at once.

## Origin

Conjectured by Pierre de Fermat around 1637 in a margin of Diophantus's Arithmetica, with special cases proved over centuries by Fermat, Euler, Germain, Dirichlet, and Kummer, and finally proved in full by Andrew Wiles, with Richard Taylor, in work published in 1995.

## Related

- [The Pythagorean Theorem](https://conyso.com/lawtome/laws/the-pythagorean-theorem/) — tension
- [Fermat's Little Theorem](https://conyso.com/lawtome/laws/fermats-little-theorem/) — kindred

## Sources

- [Fermat's Last Theorem, Wikipedia. — the statement for exponents above two, the 1637 margin note, the case-by-case history, and Wiles's 1993-1995 modularity proof with Taylor.](<https://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem>)
- [Fermat's last theorem, MacTutor History of Mathematics Archive. — the marginal claim, Euler's cube case, and the long road to Wiles's proof.](<https://mathshistory.st-andrews.ac.uk/HistTopics/Fermat's_last_theorem/>)

---
Source: https://conyso.com/lawtome/laws/fermats-last-theorem/ · The Law Tome — a sourced index of named laws.
