A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Fermat's Last Theorem (Overview)

Graduate Depth 78 in the knowledge graph ☐ I know this ☆ Set as goal
4topics build on this
368prerequisites beneath it
See this on the map →
Fundamental Theorem of Arithmetic (Rigorous Proof)→→Lagrange's Four-Square Theorem
fermats-last-theorem diophantine history

Core Idea

For n ≥ 3, xn + yn = zn has no nonzero integer solutions. Conjectured in 1637 and proved in 1995 via elliptic curves and modular forms, it exemplifies deep mathematics needed to resolve elementary-sounding problems.

How It's Best Learned

Study special cases n=3 and n=4 via infinite descent. Understand the connection to elliptic curves and modularity conceptually.

Common Misconceptions

The proof is elementary (it requires deep algebraic number theory and geometry). It contradicts the Pythagorean theorem (it applies only to n ≥ 3).

Explainer

Fermat's Last Theorem asks whether the Pythagorean equation — which you know has infinitely many whole-number solutions like 3² + 4² = 5² — can ever work for cubes, fourth powers, or any higher exponent. The answer is no: for any exponent n ≥ 3, the equation xn + yn = zn has no solution where x, y, and z are all positive integers. Pierre de Fermat claimed to have a proof of this in 1637, scrawling in a book margin that the proof was too long to fit there. For 358 years, every attempt to reconstruct it failed, and the problem became one of the most famous unsolved questions in mathematics.

The difficulty of the problem lies in a profound asymmetry: it is easy to state in elementary terms but requires tools that didn't exist when Fermat wrote it. The Fundamental Theorem of Arithmetic, which you've studied, gives us the unique prime factorization of integers. Number theorists in the 19th century tried to generalize this to larger rings of "integers" (like the Gaussian integers a + bi), hoping to factor xn + yn in ways that would force a contradiction. This strategy partially worked — it proved the theorem for many specific values of n — but it failed in general because unique factorization breaks down in these extended rings.

The breakthrough came when mathematicians noticed a surprising bridge between two apparently unrelated areas. Elliptic curves are smooth cubic curves defined by equations like y² = x³ + ax + b. If Fermat's equation had a solution (a, b, c, n), one could construct a specific elliptic curve from those values — the Frey curve y² = x(x − aⁿ)(x + bⁿ) — that would have bizarrely pathological properties. Specifically, it would fail to be modular, meaning it would not correspond to a modular form (a highly symmetric complex-analytic function). The Modularity Theorem (formerly the Taniyama-Shimura conjecture) asserts that every elliptic curve over the rationals is modular. So if the Frey curve is not modular, the original Fermat solution cannot exist.

Andrew Wiles proved the Modularity Theorem for the class of semistable elliptic curves in 1995, completing the argument. The proof runs to over 100 pages of graduate-level algebraic number theory, Galois representations, and analytic techniques. It is a landmark not only for resolving a 358-year-old conjecture but for unifying distant areas of mathematics — number theory, algebraic geometry, and complex analysis — in a single sweeping argument. The lesson is that apparently elementary problems can encode deep structural facts about mathematics, and that sometimes the right question is not "how do we solve this equation?" but "what kind of mathematical object would a solution produce, and does such an object exist?"

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Divisibility and Greatest Common Divisor → The Fundamental Theorem of Arithmetic → Divisibility Theory (Formal Treatment) → Fundamental Theorem of Arithmetic (Rigorous Proof) → Fermat's Last Theorem (Overview)

Longest path: 79 steps · 368 total prerequisite topics

Prerequisites (1)

Leads To (1)