The Story of Fermat’s Last Theorem, Part 4

By Zhenyi Tan

Maybe you’ve seen curves like this in secondary school: y = x2 + 1. Maybe you’ve had the misfortune of plotting it on a piece of paper. (I have. It looks like a U.) At that time I thought, people at university must be plotting curves like y1234 = x5678.

Turns out, I wasn’t completely wrong. People at university do study other curves, but nothing nearly as scary. In fact, we can take the secondary school curve y1 = x2 + 1, increment the small numbers by 1 each, and get y2 = x3 + 1. Not so scary, huh? This is the kind of curve people study at university.

This kind of curve is called an elliptic curve1. What do people study about them? Things like the points on the curve. And the points on the curve are just the solutions to the equation. For example, when x = 2 and y = 3, we get 32 = 23 + 1. Which is 9 = 8 + 1. It works! So now we know 9 is exactly one more than 8. Go claim your math degree.

When you plot them on paper, they tend to look like various stages of someone popping a pimple, which is why we also call them pimple curves. Here’s a more general formula for them: y2 = x3 + ax + b. Let’s look at a few of them to get some ideas:

✅ y2 = x3 − 3x + 3. This one looks like the pimple hasn’t been popped yet:

✅ y2 = x3 − 3x. This one looks like the pimple is fully popped:

😱 y2 = x3 − 3x + 2. Oh noes the pimple is just touching the face! This is cursed for pimple curves:

💀 y2 = x3. This is even more cursed. This looks like you popped the pimple so hard that your face became deformed. Please go see a doctor if your face looks like that:

Cursed? What do you mean? See, that’s the problem. Mathematicians like doing math so much that they take random things and give them rules for +−×÷, just so they can do math on them. Here they want to add points together, and cursed means they can’t do math with those curves2. Such precious snowflakes.

So uhh, how do you add points on a pimple curve? The mathematician grins and says: you have 2 points, A and B. You first draw a straight line through them. And because every line passes through the curve exactly 3 times, you get a 3rd point called C. Then you flip C upside down (turn its y negative). That’s A + B.

Let’s take y2 = x3 − x + 1 for example. You want to add (0, 1) and (1, −1) together. The line also passes through (3, −5), then you flip it and get (3, 5). Therefore (0, 1) + (1, −1) = (3, 5).

What the actual flip??? You’re about to flip the table. This all sounds so arbitrary. Unfortunately, this is just something mathematicians do. They like to bend over backwards inventing weird rules so their made-up addition behaves3 like normal addition.

You say: fine, I’ll give you your made-up addition. But what do you mean “every line passes through the curve exactly 3 times”? I can draw a vertical line and it passes through the curve twice.

The mathematician says: no, no, no. The line does pass through a 3rd point. It’s just so far away, infinitely far, that you can’t see it.

(Yeah, right. I have a girlfriend4 who goes to another school, too.)

You say: okay I’ll give you the imaginary girlfriend. But what if the vertical line is right at the left tip of the curve? It touches the curve at just 1 point. Don’t tell me you have 2 girlfriends.

The mathematician says: first of all, the girlfriend is not imaginary. Second of all, that’s a special case. For a line like that, the touching point counts twice.

You say: whaa— what about a vertical line even further left? That touches nothing!

The mathematician says: Remember complex numbers in part 2? Now those are imaginary. The line probably touches the curve at y = √−5 or −√−5 or something like that. Plus the point at infinity. 3 points.

This is why nobody likes mathematicians5.

Now, are you tired? Me too, my friend, me too. Let’s cover the signature of a pimple curve real quick before we lose our minds. Let’s look at this curve again: y2 = x3 − x + 1. How many solutions are there in the mod-5 world? For each x:

x x³ − x + 1 y
0 1 1 and 4
1 1 1 and 4
2 2 none
3 0 0
4 1 1 and 4

That’s 7 solutions6. (Then the mathematician says: don’t forget to count the girlfriend~) Fine, 8 solutions. And here we are interested in the difference between the mod and the number of solutions. So 5 + girlfriend − solutions = 5 + 1 − 8 = −2.

And we do this for other primes:

mod 3 5 7 11 13 17 19
solutions 7 8 12 10 19 14 22
difference −3 −2 −4 2 −5 4 −2

Phew, we’re finally done with this signature thing. You’ve probably never read about a drier subject than this one. In the next part we will look at something completely different that somehow spews out the exact same list of numbers.


  1. The name is just a stupid accident. They are not ellipses. ↩

  2. There’s a way to check whether a curve is cursed without plotting it. It’s called the discriminant. A curve is cursed when 4a3 + 27b2 = 0. For y2 = x3 − 3x + 2, a = −3 and b = 2, so 4 × (−27) + 27 × 4 = 0. ↩

  3. Meaning: Order doesn’t matter. Grouping doesn’t matter. There’s a zero. And everything has an evil twin that adds up to the zero. ↩

  4. Spoiler alert: the girlfriend IS the zero in the made-up addition! Wuuut? ↩

  5. There’s also another special rule about adding a point to itself, but I’ll spare you the details. ↩

  6. (0, 1), (0, 4), (1, 1), (1, 4), (3, 0), (4, 1), (4, 4). ↩