Home Tutorials Fermat's Last Theorem

Fermat's Last Theorem: Mathematics' Greatest Mystery

Discover the theorem that captivated mathematicians for 358 years. From a simple margin note to one of the most complex proofs in mathematical history, explore the fascinating journey of Fermat's Last Theorem.

The Theorem

Fermat's Last Theorem states that no three positive integers a, b, and c can satisfy the equation aⁿ + bⁿ = cⁿ for any integer value of n greater than 2.

Fermat's Last Theorem

aⁿ + bⁿ ≠ cⁿ
for all positive integers a, b, c when n > 2

Contrast with Pythagorean Theorem

✓ When n = 2 (Pythagorean Theorem)

a² + b² = c² HAS solutions

  • 3² + 4² = 5² (9 + 16 = 25)
  • 5² + 12² = 13² (25 + 144 = 169)
  • Infinitely many solutions exist

✗ When n > 2 (Fermat's Last Theorem)

aⁿ + bⁿ = cⁿ HAS NO solutions

  • No solutions for n = 3, 4, 5, 6, ...
  • This was conjectured but unproven for 358 years
  • Finally proven by Andrew Wiles in 1995

📝 Fermat's Famous Margin Note (1637)

"I have discovered a truly marvelous proof of this, which this margin is too narrow to contain."

Pierre de Fermat wrote this tantalizing note in the margin of his copy of Diophantus' Arithmetica. This single sentence launched a 358-year mathematical quest!

Historical Background

The story of Fermat's Last Theorem begins in 17th-century France and spans nearly four centuries of mathematical endeavor.

1637

Pierre de Fermat

French mathematician writes his famous conjecture in the margin of Diophantus' Arithmetica. He claims to have a proof but never writes it down.

1665

Fermat's Death

Fermat dies without ever publishing his "marvelous proof." His son publishes his father's notes, including the famous margin comment.

1753

Euler Proves n = 3

Leonhard Euler proves the theorem for n = 3, the first major breakthrough. His proof uses infinite descent and unique factorization.

1825

Dirichlet and Legendre (n = 5)

Gustav Lejeune Dirichlet and Adrien-Marie Legendre independently prove the case n = 5.

1839

Lamé Proves n = 7

Gabriel Lamé proves the theorem for n = 7, but his method doesn't generalize to all cases.

1995

Andrew Wiles' Proof

After 358 years, Andrew Wiles finally proves Fermat's Last Theorem using advanced techniques from algebraic geometry and number theory.

🤔 Did Fermat Really Have a Proof?

Most mathematicians today believe Fermat did not actually have a correct proof. The theorem's proof requires mathematical tools that weren't developed until the 20th century. Fermat likely had an incomplete argument or made an error he didn't recognize.

Special Cases and Early Progress

Before Wiles' general proof, mathematicians proved the theorem for specific values of n, gradually building confidence in its truth.

Case by Case Victories

n = 3
Leonhard Euler (1753)
Infinite descent with unique factorization in ℤ[ω] where ω³ = 1
First major breakthrough after 116 years
n = 4
Fermat himself (~1640)
Infinite descent (method of infinite descent)
Fermat's only published proof of a special case
n = 5
Dirichlet & Legendre (1825)
Factorization in ℤ[ζ₅] using properties of cyclotomic integers
Required new algebraic number theory
n = 7
Gabriel Lamé (1839)
Cyclotomic integers, but method breaks down for larger n
Revealed fundamental obstacles to elementary approaches

🔑 Key Insight: Sufficient to Prove for Prime Exponents

Mathematicians realized early that if the theorem holds for a prime p, it also holds for any multiple of p. This reduced the problem to proving it for prime exponents only.

Sophie Germain's Contribution

Sophie Germain's Theorem (1823)

If p is a prime and 2p + 1 is also prime (called a Sophie Germain prime), then Fermat's Last Theorem holds for exponent p in "Case 1" (where p doesn't divide abc).

Examples of Sophie Germain primes: 2, 3, 5, 11, 23, 29, 41, 53, 83, 89, 113, 131...

This theorem covered many cases and was a significant theoretical advance.

Failed Attempts and Near Misses

The 19th and 20th centuries saw numerous attempts to prove Fermat's Last Theorem, each contributing valuable insights despite falling short of a complete proof.

Ernst Kummer's Breakthrough

Ideal Numbers and Regular Primes

Ernst Kummer (1850s) developed the theory of "ideal numbers" to restore unique factorization in cyclotomic number fields. He proved Fermat's Last Theorem for all "regular" prime exponents.

Regular primes < 100: 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 41, 43, 47, 53, 61, 71, 73, 79, 83, 89, 97
Irregular primes < 100: 37, 59, 67

Kummer's work covered the vast majority of cases but couldn't handle irregular primes.

Computational Verification

1954
Verified up to n = 25,000
1976
Verified up to n = 125,000
1992
Verified up to n = 4,000,000

💻 Why Computation Wasn't Enough

Even verifying millions of cases couldn't constitute a proof. Mathematics requires proof for ALL possible cases, not just a large finite number. The theorem needed to be proven for infinitely many exponents.

Why Elementary Methods Failed

🚫 Lack of Unique Factorization

In rings like ℤ[∛2], numbers don't factor uniquely into primes, breaking down elementary approaches.

🚫 Infinite Descent Limitations

Fermat's method of infinite descent worked for small cases but couldn't be generalized to all exponents.

🚫 Algebraic Complexity

Higher exponents require increasingly sophisticated algebraic structures beyond elementary number theory.

Andrew Wiles' Breakthrough

In 1995, Andrew Wiles achieved what seemed impossible: a complete proof of Fermat's Last Theorem using cutting-edge mathematics.

The Revolutionary Approach

1

Elliptic Curves Connection

Wiles connected Fermat's equation to elliptic curves. If aⁿ + bⁿ = cⁿ had a solution, it would create a specific type of elliptic curve.

2

Taniyama-Shimura Conjecture

He proved that such elliptic curves must be "modular" (connected to modular forms), but showed they cannot be modular—a contradiction!

3

Galois Representations

Used advanced techniques from algebraic geometry and representation theory to establish the required modularity results.

The Dramatic Timeline

1986-1993

Seven Years of Secret Work

Wiles worked in complete secrecy at Princeton, telling no one about his approach. He stopped publishing other papers to focus entirely on Fermat.

June 1993

The Announcement

Wiles announced his proof in three lectures at Cambridge. The mathematical world was stunned. News media worldwide reported the breakthrough.

September 1993

The Gap

Referees found a serious gap in the proof. Wiles' approach to a key lemma (using Euler systems) had a fundamental flaw.

October 1994

The Fix

Working with Richard Taylor, Wiles found a way to repair the proof using a different approach combining his original method with Kolyvagin's work.

May 1995

Final Publication

The complete, verified proof was published in Annals of Mathematics. Fermat's Last Theorem was finally proven after 358 years.

🏆 Recognition and Awards

  • 1996: Wolf Prize in Mathematics
  • 1998: Special tribute at International Congress of Mathematicians
  • 2000: Clay Millennium Prize recognition
  • 2016: Abel Prize "for his stunning proof of Fermat's Last Theorem"

Significance and Impact

Wiles' proof did far more than solve an old puzzle—it revolutionized mathematics and opened new frontiers of research.

Mathematical Impact

🔗

Connected Distant Fields

The proof created unexpected bridges between number theory, algebraic geometry, and representation theory, showing deep unity in mathematics.

🛠️

New Mathematical Tools

Techniques developed for the proof became powerful tools for other problems in arithmetic geometry and automorphic forms.

🎯

Modularity Theorem

Wiles proved a special case of the Taniyama-Shimura conjecture, later extended to the full Modularity Theorem—a cornerstone of modern number theory.

🌟

Inspired New Research

The proof methods inspired work on the Birch and Swinnerton-Dyer conjecture, the abc conjecture, and other major problems.

Cultural Impact

📚 Popular Mathematics

The theorem's story captivated the public, inspiring books, documentaries, and renewed interest in mathematics. Simon Singh's "Fermat's Enigma" became a bestseller.

🎓 Educational Influence

The theorem became a symbol of mathematical perseverance and the power of pure research, inspiring countless students to pursue mathematics.

💰 Prize Money

The Wolfskehl Prize (100,000 German marks, about $50,000 in 1995) was awarded to Wiles, though inflation had reduced its real value significantly.

🧠 What Makes This Proof Special?

Wiles' proof is remarkable not just for solving Fermat's Last Theorem, but for the sophistication of its methods. It uses some of the most advanced mathematics of the 20th century, requiring deep knowledge of:

  • Elliptic curves and modular forms
  • Galois representations and deformation theory
  • Iwasawa theory and Euler systems
  • Algebraic geometry and scheme theory

Practice Exercises

Test your understanding of Fermat's Last Theorem and related concepts:

Exercise 1: Why does the Pythagorean theorem work but Fermat's doesn't?

Exercise 2: Verify that 3⁴ + 4⁴ ≠ 5⁴

Exercise 3: If Fermat's Last Theorem is true for n=p (prime), why is it true for n=2p?

Exercise 4: What is a Sophie Germain prime? Give three examples.

Exercise 5: Why couldn't Fermat have had the proof he claimed?

Exercise 6: What is the Beal Conjecture and how does it relate to Fermat's Last Theorem?

Exercise 7: How long did it take to prove Fermat's Last Theorem?

Exercise 8: What mathematical fields did Wiles' proof connect?

🎉 Congratulations!

You've explored one of mathematics' greatest stories! You now understand:

  • ✓ Fermat's Last Theorem and why it's different from the Pythagorean theorem
  • ✓ The 358-year quest to prove this famous conjecture
  • ✓ How special cases were proven over the centuries
  • ✓ Why elementary methods failed and advanced techniques were needed
  • ✓ Andrew Wiles' revolutionary proof using elliptic curves and modular forms
  • ✓ The theorem's impact on modern mathematics and culture
  • ✓ Related problems and open questions in number theory

Ready to test your knowledge?

Take the Full Quiz →