At this point, we want to take a step back. Actually, let’s take 100 steps back.
Fermat’s Last Theorem is about adding 2 numbers together. Yet in this series, we’ve talked about modulo math, pimple curves, modular forms, and those 2 Japanese guys. What do any of these have to do with adding 2 numbers together? To answer that, we have to look at something much more fundamental: what does A + B = C mean. Here’s a number line with 3 points drawn on it: 0, 1, and −2.

Now what if I told you, the 2 smaller distances must add up to the largest distance? Like, the distance between 0 and 1 + the distance between 0 and −2 = the distance between 1 and −2? And this is true no matter where you draw the 3 points? Did I just blow your mind? Probably not huh. 1 + 2 = 3 sounds like common sense.
But does it make sense that solving a5 + b5 = c5 is the same thing as drawing 3 points on the line, so that all 3 distances between the points are perfect 5th powers1?
Now let’s look at pimple curves again. It turns out you can also write the equation of a pimple curve like this: y2 = (x − A)(x − B)(x − C), where A, B, and C are the 3 roots of the curve2. This means the curve crosses the x-axis at 3 points: (A, 0), (B, 0), and (C, 0). Let’s revisit the curves from part 4 and see how we can rewrite them. The numbers aren’t always pretty, which is why we prefer the x3 + ax + b format3.
y² = x³ − 3x + 3 -> (x + 2.1038)(x − 1.0519 − 0.5652i)(x − 1.0519 + 0.5652i)
y² = x³ − 3x -> (x − 0)(x − √3)(x + √3)
y² = x³ − 3x + 2 -> (x − 1)(x − 1)(x + 2)
y² = x³ -> (x − 0)(x − 0)(x − 0)
Now look at this pimple curve, y2 = (x − 0)(x − 9)(x + 16):

The 3 roots are 0, 9, and −16. It touches the x-axis at (0, 0), (9, 0), and (−16, 0). The distances between the 3 roots are 9, 16, and 25. AKA 32, 42, and 52. Can you see now that writing down a pimple curve is kind of like drawing 3 points on the line? If Fermat’s Last Theorem is true, you shouldn’t be able to draw those 3 points, and a pimple curve built from those 3 numbers shouldn’t exist.
Gerhard Frey decided to try anyway. Like Euler in part 2, he decided to write it down and see what happened. Here’s the curve: y2 = (x − 0)(x − an)(x + bn).
After a lot of calculations, Frey and his friends4 found that if the curve had a friend, the friend would be a weight-2 level-2 modular form. But there’s no such thing as a weight-2 level-2 modular form5. It’s too good to be true.
Once mathematicians knew that this curve had no friend, it became clear to them. To prove Fermat’s Last Theorem, they just needed to prove what the 2 Japanese guys said: every pimple curve has a friend. Every actor is secretly a professional wrestler. Tilda Swinton. Emma Watson. All of them.
Sounds easy, eh? Give me a math PhD and 7 years in the attic, and I shall prove it.
-
You can’t. Dirichlet and Legendre already proved it. We talked about them in part 2. ↩
-
This is why the mathematician from part 4 said every line crosses the curve 3 times. ↩
-
Notice how the 3rd curve has a root repeated twice, and the 4th curve has a root repeated 3 times. This is why they’re cursed and extra cursed. ↩
-
Surprisingly, like pimple curves, mathematicians have friends too. ↩
-
Again, cusp form. But that’s not important right now. ↩