** You are viewing content which is not in your chosen language.**

In the 17th century, there lived a French lawyer named Pierre de Fermat.

**Pierre de Fermat1601 – 1665**

His hobby was abstract maths, the study of numbers for their own sake.

In the margins of one book, he wrote next to an equation, *'I have discovered a truly remarkable proof, which this margin is too small to contain'.*

Mathematicians would spend the next three centuries trying to replicate this proof.

**Fermat's Last Theorem**

Fermat's last theorem was a simple Diophantine equation.

Diophantine equation: Equation in which the solutions are integers

Fermat stated that his equation could be true when numbers were squared.

But would never be true if numbers were more than squared.

**x³ + y³ ≠ z³**

**Andrew Wiles, Princeton University, USA** – *"x ^{2} plus y^{2} equals z^{2}. And you can ask, well, what are the whole number solutions for this equation. You quickly find there is a solution, 3^{2} + 4^{2} = 5^{2}. Another one is 5^{2} +12^{2} = 13^{2}. And you go on looking and you find more and more. So then a natural question is the question Fermat raised: supposing you change from squares? Supposing you replace the ^{2} by ^{3}, by ^{4}, by ^{5}, by ^{6}, by any whole number 'n'. And Fermat said simply that you'll never find any solutions, however far you look, you'll never find a solution."*

**Proving the Theorem**

Despite Fermat's tantalising note, no one could prove his theory was correct, because it was impossible to actually test all numbers up to infinity.

The theory was eventually added to the 'Guinness Book of Records' as the world's most difficult maths problem.

But in 1995, over 350 years after Fermat wrote his note, Andrew Wiles finally proved the theorem.

*"And I was sitting here, at this desk, when suddenly, totally unexpectedly, I had this incredible revelation. It was the most important moment of my working life."*

And though the equation is deceptively simple, the proof is incredibly complex.

Certainly too large to fit in the margins of a book.