In the 17th century, a lawyer called **Pierre de Fermat** conjectured many theorems while reading a mathematics textbook called *Arithmetica*, written by an ancient Greek mathematician called Diophantus. He wrote his theorems on the margins of the books. After his death, a version of the Arithmetica with Fermat’s theorems was published and many mathematicians checked over Fermat’s proofs. However, there was one theorem that could not be solved. Fermat wrote on the theorem: “**I found an amazing proof but it is too large to fit in this margin**”.

Fermat’s last theorem is as follows:

No three positive integers x, y, and z can satisfy the equationxⁿ + yⁿ = zⁿfor any integer value ofngreater than two.

For example, x² + y² = z² can be solved using Pythaogorean triplets (e.g. 3, 4, 5) but there are no values for x, y and z that solves x³ + y³ = z³. This theorem remained unsolved for 357 years until **Andrew Wiles** finally found the proof in 1995.

There are many stories surrounding Fermat’s last theorem, but by far the most interesting is related to suicide. In 1908, a German mathematician called **Paul Wolfskehl** decided to kill himself after being cold-heartedly rejected by the woman he loved so much. He decided to shoot himself at midnight and in the remaining time started reading some mathematics texts until he found a flaw in Kummer’s theory, which disproved Cauchy and Lamé’s solution (the leading solution at the time. After Kummer’s essay, most mathematicians of the time gave up on Fermat’s last theorem). After researching Kummer’s essay, Wolfskehl found that it was far past midnight and he felt great pride in reinforcing Kummer’s solution. His depression was gone and through mathematics he found new meaning in his life. Wolfskehl, who believed that the theorem saved his life, made a resolution to donate his wealth to whoever solved Fermat’s last theorem, putting up 100,000 marks as a prize. This prize was claimed by Wiles in 1996 (then worth $50,000).