They don't. Around 1637, the French lawyer and amateur mathematician Pierre de Fermat was reading his
copy of Diophantus's Arithmetica — right next to the very problem about Pythagorean triples —
and scrawled a note in the margin: he had discovered that no such triples exist once the exponent
climbs past
Why should
For any integer exponent
has no solution in positive integers
Notice exactly where the door slams shut: at
Before trusting a sweeping claim like "never, for any exponent above 2," it's worth trying to break
it — that's exactly what generations of mathematicians did. Start with the smallest interesting case,
Is
Try a pair that looks more promising:
That is agonisingly close to
Every single pair misses. That is weak evidence, not a proof — a counterexample could in principle be
hiding at some astronomically large
The theorem was chipped away exponent by exponent, each attack borrowing tools from the last. Fermat
himself actually left behind a real proof for one case,
The really ambitious attacks tried to factor
Progress wasn't only European or only male, either — one striking contribution came from Sophie
Germain in the early 1800s. Barred from officially enrolling at the École Polytechnique because she was
a woman, she studied in secret and corresponded with leading mathematicians (including Gauss) under a
male pseudonym, Monsieur Le Blanc, before her real identity was discovered. Germain proved a powerful
general result: for a whole class of exponents (now called Sophie Germain primes), if a solution to
Fermat's equation existed, one of
The proof finally arrived in
Put honestly: the tools Wiles used — elliptic curves, modular forms, Galois representations — did not exist in any form in Fermat's century. They are entirely 20th-century mathematics, built up over generations by many hands. That gap is the whole reason mathematicians are almost unanimous that Fermat's own "marvellous proof" could not have been correct — see the vignette below. Fermat's Last Theorem stands as the perfect emblem of number theory: a question a curious teenager can understand, whose true answer required inventing centuries of new mathematics no one alive in 1637 could have guessed would be needed.
The announcement made front-page news around the world — a rare thing for a pure-mathematics result. Part of the appeal is exactly this contrast: the statement is something a ten-year-old can understand (Wiles himself first read about it as a child in his local library), while the proof sits at the very frontier of professional mathematics, readable in full by only a small community of specialists. Few results bridge "everyone can ask the question" and "almost no one can follow the answer" so dramatically.
It is tempting to imagine Fermat really did have a short, elegant proof that was simply lost to history. Almost every historian of mathematics thinks that's wishful thinking. The strongest piece of evidence is the one you just read: the eventual proof needed elliptic curves, modular forms, and Galois representations — machinery invented in the 1950s–1990s, more than three centuries after Fermat died. It is essentially inconceivable that a 17th-century mathematician, however brilliant, stumbled onto a correct short-cut around all of that.
There's supporting evidence too: Fermat wrote proudly about many of his other results in letters to
fellow mathematicians over the following decades, boasting and challenging his rivals to match them —
but he never once mentioned this "marvellous proof" again, not even when directly discussing special
cases of the very same problem. Historians generally believe Fermat briefly thought he had a valid
argument (perhaps an extension of the infinite-descent method that works perfectly for
Andrew Wiles had been fascinated by Fermat's Last Theorem since he was ten years old, reading about it in his local library. As an adult mathematician, he took an extraordinary gamble: starting in 1986, he worked on the proof almost entirely alone, in the attic of his house, for seven years, telling almost no one — not because he was secretive by nature, but because a problem this famous attracts a crowd the moment word gets out, and he wanted the space to think without an audience.
In June 1993, he announced his proof in a series of three lectures at Cambridge, triggering global front-page news — this was math's equivalent of a moon landing. Then, during the routine process of other experts checking the details, a serious gap turned up in one key step. Wiles spent another gruelling year, eventually working with his former student Richard Taylor, before finding a way to repair it in September 1994. The corrected proof was published in 1995. Few results in the history of mathematics have had such a dramatic, public, nail-biting path from announcement to acceptance.
Fermat scattered dozens of claims through his letters and margin notes, and mathematicians spent the
18th and 19th centuries confirming almost all of them one by one — Fermat was careful, and nearly
everything he claimed turned out to be true. This particular claim about