"I think I'll stop here." This is how, on 23rd of June 1993, Andrew Wiles ended his series of lectures at the Isaac Newton Institute in Cambridge. The applause, so witnesses report, was thunderous: Wiles had just delivered a proof of a result that had haunted mathematicians for over 350 years: Fermat's last theorem.

Andrew Wiles.

Wiles’ announcement now celebrates its twentieth birthday, but the result itself is linked to maths that is over 2000 years old. Most people have heard of Pythagoras’ theorem: if , and are the sides of a right-angled triangle, with the side opposite the right angle, then

There are infinitely many triples , and of natural numbers which satisfy this equation. Examples are , and They are called Pythagorean triples.

Fermat’s last theorem looks at similar equations but with different exponents. Are there triples of natural numbers that satisfy or or More generally, can we find triples of natural numbers that satisfy

where is any natural number? The 17th century mathematician Pierre de Fermat convinced himself that such triples don’t exist for any natural number . In 1637 he wrote into the margin of his maths textbook that he had found a "marvellous proof" for this fact, which the margin was too narrow to contain. That tantalising scribble was to taunt mathematicians for a long time.

When Wiles announced his proof at the Newton Institute he had spent seven years working on the problem in secret, avoiding the attention he would have attracted had he admitted to what he was doing. In fact he had been working on a more general problem, called the Taniyama-Shimura conjecture, whose solution implied Fermat's last theorem, but which was considered pretty inaccessible by most mathematicians at the time. "But Although Wiles hadn't published anything on this topic, everyone knew if anyone was to prove Fermat's last theorem, he had a good chance," recalls Tom Körner, a mathematician at the University of Cambridge. "I had interviewed Wiles for a fellowship at Trinity Hall, Cambridge, just before he moved to Princeton. Everyone said he was brilliant."

Before Wiles announced his proof he had already lectured for two days, as part of a research programme at the Newton Institute. "Rumours were flying around that something important would happen on the third day," says Körner. "I asked his student what was happening and he said 'I can't tell you'. I asked him 'Will I regret not being there on the last day?' and he said 'Yes'."

Wiles' lecture lived up to expectations: "The atmosphere was electric," says Körner. "After he finished, there was a storm of applause and then the few people in the audience who knew the material asked questions, and then said the result looked good."

And it is not all about the bottom line. "Wiles' proof has had a greater impact than that of other results, like the four colour theorem, because of the mathematics that was created to prove the theorem," says Körner. As it turned out, Wiles' proof did contain a flaw which took another year and help from a former student, Richard Taylor, to fix. But in the end the 357-year-old-problem yielded to the sophisticated techniques developed to crack it.

Further reading

You can find out more about Andrew Wiles and Fermat's last theorem in these Plus articles: