The Number That Never Changes

Corners, edges and faces — and the small rule hiding inside every football, die, gemstone and tent

It's Saturday morning and there's a football lying on the wet grass. Go and look at it properly. Black patches and white patches. The black ones have five sides. The white ones have six. Now count the black ones — really count them, turning the ball round. There are twelve.

Every proper football in the world has exactly twelve black patches. Not eleven. Not thirteen. Big balls, small balls, balls made in different factories on different continents: twelve. Nobody decided this at a meeting. Nobody could have decided otherwise. By the end of this page you will know why — and you'll be able to prove it to someone else.

On the way we'll look at a pair of dice, a cut gemstone, a camping tent, a dome, a virus, a famous molecule and a city with seven bridges. They're all made of the same three things: flat patches, straight lines where patches meet, and sharp points where lines meet. And hidden in all of them is one tiny rule, so short you could write it on a fingernail.

Puzzles this page will answer:

  1. Why does every football have exactly 12 black pentagons, whatever its size?
  2. Is there a secret number shared by a die, a pyramid, a tent and a ball with 32 patches?
  3. Can you build a shape that breaks the rule? (You'll try. It's harder than it sounds.)
  4. Why is a donut different from a ball — and how does a shape "know" it has a hole?
  5. What does a 290-year-old puzzle about seven bridges have to do with any of this?

How this page works. The pictures are not pictures. Each one is a little machine that builds a real shape out of numbers and draws it for you. You can spin the shapes with your finger or mouse, click bits of them, and change settings. Under every machine there's a sentence that tells you what it's counting right now, and a "things to notice" list with settings worth trying. The page is in two halves. The first half finds the rule and proves it. The second half uses it. There's a marked place to stop between them — this is at least two sittings.

Section 1Every solid shape is made of three kinds of thing

Think of a camping tent. There are pegs hammered into the ground at the sharp points. There are poles running between the pegs. And there's cloth stretched flat between the poles. Pegs, poles, cloth. Points, lines, patches.

A die is the same. Eight sharp points you could prick your finger on. Twelve straight lines you could run your fingernail along. Six flat patches, one per number. Try it on the cube below. Pick what you want to count, then click them one by one. Each one you click gets a number so you don't lose track. Drag to spin the shape — some of them are round the back.

A few things to notice

Now you've seen them, let's give the three kinds of thing their proper names. The sharp points are corners. The straight lines are edges. The flat patches are faces. From now on the page will say corners, edges and faces, but if you ever get muddled, think pegs, poles and cloth.

Hold on to this idea

An edge is a line with exactly two ends, and exactly two faces meet along it — one on each side, like two fields sharing a fence. And a corner is a point where several edges and several faces all meet. We'll need this in the second half, when we count a football.

Try it at home · toothpicks and clay

You need a box of toothpicks and some modelling clay, plasticine or Blu Tack (not soft play dough — it sags and the toothpicks fall out). Roll little balls of clay for the corners. Push toothpicks into them for the edges. Build a cube (8 balls, 12 sticks), then a pyramid with a square bottom (5 balls, 8 sticks), then a tent shape (6 balls, 9 sticks).

Now the odd bit: where are the faces? There's no cloth. But look through the model — each "window" of air between the sticks is a face. Count the windows on your cube. There are six. Why this works: a face is just the patch framed by its edges; it doesn't need to be filled in. The sim above draws the faces filled in, but you could switch them off and nothing about the counting would change.

Section 2Count enough shapes and a pattern shows up

Now we're going to be detectives. Below is a shape machine with a menu of twelve shapes and a table. For each shape you add, the table writes down its number of corners, edges and faces. Your job is to find a pattern hiding in those three columns.

Don't read past the table until you've tried. Add at least five shapes, and make them different kinds: a pyramid, a prism, something with lots of faces. Then stare at the numbers. Try adding two of the columns together. Try subtracting. If you get really stuck there's a "stuck?" button, but the first time you spot it yourself is much better than being told.

Here's a column that adds the corners and the faces together. Compare it with the edges column. What do you notice?

Here it is. Corners plus faces is always exactly two more than edges. Another way to say the same thing: take the corners, take away the edges, add the faces, and you get 2. For the cube: 8 − 12 + 6 = 2. For the tetrahedron: 4 − 6 + 4 = 2. For the football: 60 − 90 + 32 = 2.

From here on, every shape machine on the page writes this little sum under the shape. Watch for it.

A few things to notice

This rule — corners, take away edges, add faces, always 2 — is named after a Swiss mathematician called Leonhard Euler (say "OIL-er"), who wrote it down in 1750. People call it Euler's rule. You've just rediscovered it with a table, which is pretty much how he did it too.

Section 3Checking a thousand shapes is not the same as proving

You checked twelve shapes. Maybe the thirteenth breaks the rule. So here's a machine that makes shapes in endless families: prisms, twisted prisms, pyramids and double pyramids with any number of sides. Slide the slider. Every single one of them obeys the rule.

A few things to notice

So now you've checked, let's say, a hundred shapes. Is the rule proved? No. And this is the most important idea on the page, so let's be careful about it.

Imagine you taste ten apples from a tree and they're all sweet. You could say "the apples on this tree are sweet" and you'd probably be right. But you haven't proved it. Maybe the eleventh apple is sour. To be sure, you'd need to understand something about the tree itself — something that makes every apple sweet, including ones that haven't grown yet.

That's the difference. Checking means trying lots of examples and seeing that it works for those. Proving means finding a reason why it has to work — for every shape, including shapes nobody has ever built or imagined. The sliders above go up to 14. A proof has to work for a prism with a billion sides, and for a shape as lumpy and weird as you like.

The rest of the first half of this page is a real proof. It has three steps, and each one is a thing you can do with your hands (or your finger on the screen). Nowhere in it will you need to trust us.

René Descartes, the French philosopher, seems to have noticed something very close to this rule around 1630, but he never published it — his notes were lost, copied once by Leibniz in 1676, and only found again in 1860. Euler wrote the rule in a letter to his friend Christian Goldbach in November 1750, saying he was surprised nobody had noticed it before. Euler tried to prove it and his proof had a gap. The first proof that really held up came from Adrien-Marie Legendre in 1794, and the one we're about to do is from Augustin-Louis Cauchy, in 1813.

Try it at home · straws and pipe cleaners

Drinking straws make good edges, and a pipe cleaner pushed into the end of two straws and bent makes a corner that holds. (String threaded through the straws works too, but it's fiddly.) Build a triangle first. Then build a pyramid on it: three more straws meeting at a point above it. That's a tetrahedron: 4 corners, 6 straws, 4 air-windows. 4 − 6 + 4 = 2.

Now add one more corner: push a new straw out from any corner, with a fresh pipe-cleaner corner on its loose end. Count again. 5 corners, 7 straws, and still 4 windows (the new straw doesn't frame a new window — it just sticks out). 5 − 7 + 4 = 2. Why this works: you added one plus (a corner) and one minus (an edge). Remember that trick — it's Section 7.

Section 4Squash any shape flat and nothing changes

Here's step one of the proof, and it's a strange one. Imagine your shape is a beach ball with the edges drawn on it in marker pen. Now cut out one face with scissors. You've made a hole. Grab the edges of the hole and pull them wide — wider and wider — until the whole ball has been stretched out flat on the table, like a rubber sheet pinned down around the hole.

Every corner is still there (it's a dot now). Every edge is still there (a line, maybe curved). Every face is still there (a patch on the sheet). And the face you cut out? It's still there too: it's the outside, everything beyond the edge of the sheet. Try it. Slide the slider slowly.

A few things to notice

Why does this help? Because a solid is awkward to take apart — you can't reach round the back. A flat map lies still on the table. And since stretching never adds or removes anything, whatever we find out about the flat map is true of the solid it came from. From now on we'll say dots, lines and patches when we mean the flat map, and corners, edges and faces for the solid, but they're the same things.

One important thing: for the stretching to work, the shape has to be ball-like — one piece, no holes through it, and every face a simple patch with no hole in it. All the shapes you've met so far are like that. Keep this in mind, because in Section 11 we'll meet shapes that aren't, and the rule will go wrong for them in exactly the way this step predicts.

This "pop a face and flatten it" trick is the heart of Cauchy's proof from 1813. Cauchy was 24. The flat drawings are sometimes called Schlegel diagrams, after Victor Schlegel, who studied them in the 1880s.

Try it at home · a paper net

Draw six squares on paper in a cross shape (one column of four squares with one square stuck on each side of the second square). Cut round the outside. Before you fold it, count: this flat cross has 14 corners, 19 edges and 6 faces. 14 − 19 + 6 = 1. Only 1! Now count the outside as a patch too, like the sim does: 14 − 19 + 7 = 2. There it is.

Fold it into a cube and tape it. Corners that were separate get glued together, and so do edges: now it's 8 corners, 12 edges, 6 faces. 8 − 12 + 6 = 2. Why this works: the flat cross is a map, just like the squashed shapes in the sim. The only thing that was "missing" was the outside patch. Try the same with eight triangles for an octahedron: a strip of 8 triangles, alternating up and down.

Section 5Take away one line and the total stays the same

Step two. We've got a flat map on the table. Now we're going to wreck it, carefully, one line at a time — and watch the total.

Pick a line that has a different patch on each side (remember the fence between two fields). Rub it out. The two patches join into one big patch. So: one line fewer, and one patch fewer. What happens to the sum?

This is the bit that trips people up, so let's do it slowly with the cube. Before: 8 − 12 + 6 = 2. We take away one line, so there are 11 lines instead of 12. But lines are the thing we subtract. Subtracting 11 instead of 12 means we're taking away less — so the total goes up by 1. Taking away a take-away makes things bigger. Then the patches: 5 instead of 6, and patches are a thing we add, so the total goes down by 1. Up 1, down 1. After: 8 − 11 + 5 = 2. Still 2.

Try it yourself. The machine shows the sum before and after every click, and underneath it shows the same thing as counters: green dots and blue squares are the pluses, red bars are the minuses, and each plus cancels a minus. Watch how many are left over.

A few things to notice

Section 6Take away a dangling line, with its dot, and it still stays the same

By the end of Section 5, your map was a bare tree of lines with no patches, and some of those lines were dangling: one end attached, one end loose, like a twig. Here's the second move. Snap off a dangling line together with the loose dot on its end. That's one dot fewer and one line fewer.

Same arithmetic, other way round. One dot fewer: dots are added, so the total goes down 1. One line fewer: lines are subtracted, so subtracting less makes the total go up 1. Down 1, up 1. From 8 − 7 + 1 = 2 to 7 − 6 + 1 = 2.

And now the magic: a tree always has a twig somewhere (a line with a loose end). So you can keep snapping twigs until there's nothing left but one lonely dot. Try to get all the way down.

A few things to notice

Section 7Adding never changes it either

You might wonder: fine, taking things away keeps it at 2 — but could adding things push it to 3? Let's try. There are three ways to add to a map without breaking it:

Those are exactly the moves of Sections 5 and 6 run backwards. Have a go. Each tool adds one plus and one minus, so the counters still cancel to 2.

A few things to notice

Go back to Section 3 and slide the prism slider up by one. Each extra side adds 2 corners, 3 edges and 1 face. Can you see those three additions as the moves from this section? (Two dots on lines, then one line across a patch — try it in the map above on a tent.)

Section 8And that's the whole proof

Let's put the three steps together and see why they add up to a proof — a real one, that works for shapes nobody has built.

  1. Take any ball-like shape. Pop one face and squash it flat (Section 4). The counts of corners, edges and faces don't change, and the popped face becomes the outside.
  2. Take lines away one at a time (Sections 5 and 6). Each move takes one plus and one minus, so the total never moves.
  3. You can always keep going until you reach a single dot — because any map with lines in it either has a patch (so there's a fence line to rub out) or is a tree (so there's a twig to snap).
  4. A single dot scores 1 − 0 + 1 = 2. The total never changed on the way down. So it was 2 at the start.

Notice what we did not do. We didn't check lots of shapes and hope. We didn't use anything special about cubes or footballs. We showed that whatever shape you start with, the same three moves drag it down to a dot without ever disturbing the total. That is what proving means: a reason that works for all of them at once.

Here's a machine that runs the whole proof on any shape, including the football, so you can watch it happen without 90 clicks. Press "Run the whole proof" and keep an eye on the sum.

A few things to notice

Go back to Section 2 and look at your table again. Every row was really the same event: a map with one plus more than its minuses, twice over. Now you know why no row could ever have come out as 1 or 3.

A good place to stop

You've found the rule and you've proved it. That's a whole afternoon's worth. The second half uses the rule to explain footballs, domes, viruses and a Nobel Prize, and then goes looking for shapes that break it.

Part two · Using the rule

Section 9A football must have exactly 12 pentagons

Back to the ball on the grass. Here's what we know about a football without counting anything: every patch is a pentagon (5 sides) or a hexagon (6 sides), and at every corner exactly three patches meet. You can check both facts on the ball below — click a corner, click a few patches. Now we'll use the rule to work out how many pentagons there must be. We won't count them; we'll deduce them.

Click a face or a corner on the ball above.

Step 1: play the counting game six times over. Corners − edges + faces = 2. If you count every corner six times, every edge six times and every face six times, you get six times the answer: 12. For the football that's 360 − 540 + 192 = 12. (Check it in the readout above.) Why six? You'll see — it's the number that makes all the sharing come out in whole numbers.

Step 2: hand everything out to the patches. Remember the idea you held on to from Section 1: every edge has exactly two faces, one each side, and at a football's corners exactly three faces meet. So we can give each corner's 6 counts to the 3 patches that meet there — 2 each. Give each edge's 6 counts to the 2 patches it sits between — 3 each. And each face keeps its own 6. Nothing is lost: all 12 of the total is now sitting in the patches' pockets.

Step 3: what does each patch end up with?

A hexagon: 6 corners × 2 = 12, minus 6 edges × 3 = 18, plus its own 6.  12 − 18 + 6 = 0 Every hexagon holds exactly nothing. A pentagon: 5 corners × 2 = 10, minus 5 edges × 3 = 15, plus its own 6.  10 − 15 + 6 = 1 Every pentagon holds exactly one.

Step 4: add up the pockets. The pockets must hold 12 in total (Step 1). Hexagons hold 0 each, so they contribute nothing no matter how many there are. Pentagons hold 1 each. So there must be exactly 12 pentagons. Not because anyone decided; because the rule leaves no other possibility. Press "Show each face's tally" above and you'll see every hexagon marked 0 and every pentagon marked 1.

A few things to notice

Go back to Section 1, pick the football and click one corner. Three edges, three patches. The whole 12-pentagon proof hangs on that.

Section 10Domes, virus shells and a Nobel Prize

The same trick works turned inside out. On the football, three patches meet at every corner. Now think of triangles instead, with five or six meeting at each corner. That's a geodesic dome. Start with an icosahedron (20 triangles). Cut every triangle into smaller triangles. Then puff the whole thing out into a ball. The architect Buckminster Fuller made these famous in the 1950s. The giant sphere at the Montreal Expo in 1967 is one.

Count the corners below where only five triangles meet. Cut the triangles as finely as you like. There are always exactly 12 of them. The reason is the same as for the pentagons.

A few things to notice

Virus shells. Many viruses keep their insides in a protein shell. The shell is built like a geodesic dome, out of nearly identical pieces. In 1962 Donald Caspar and Aaron Klug worked out that such shells must have 12 five-way spots. The reason is the one you've just seen. Biologists now describe a virus shell by how many triangles it's cut into. That's the same slider you just moved.

The Buckyball. In 1985, three chemists found a molecule of 60 carbon atoms. The atoms sit exactly like the corners of a football: 60 corners, 90 bonds, 12 pentagons and 20 hexagons. Harold Kroto, Robert Curl and Richard Smalley named it buckminsterfullerene, after Fuller's domes. In 1996 they won the Nobel Prize in Chemistry for it. Go back to Section 9's ball and imagine a carbon atom at every corner. That's the molecule. It has to have 12 pentagons, and so it does.

A cousin puzzle: the seven bridges

Euler solved this puzzle fourteen years before his letter about corners and edges. It is about the town of Königsberg (now Kaliningrad). The river there had an island, a fork, and seven bridges. Townspeople wondered: can you go for a walk that crosses every bridge exactly once? Try it.

A few things to notice

Section 11Stranger shapes

Puzzle number 3 at the top of the page was: can you build a shape that breaks the rule? The proof says no — for ball-like shapes. So the way to break it is to build something that isn't ball-like. Let's go looking.

A picture frame gives 0, and two holes give −2

Here's a square picture frame: a block with a hole through the middle. Count it (mark all the faces — the four walls inside the hole count too).

A few things to notice

The first person to notice that holes change the number was Simon Lhuilier, a Swiss mathematician, in 1813 — the same year as Cauchy's proof. Each hole takes 2 off.

A dent is fine

You might think a dent is a bit like a hole. It isn't. A cube with its top pushed in is still ball-like — you could still pop a face and stretch it flat, you'd just have an extra ring of lines. Count it.

A few things to notice

The rule works on maps too

Our flat maps were squashed shapes. But a real map works too: countries are patches, borders are lines, and the places where three or more borders meet are dots. The sea around an island counts as one big country (it's the outside, remember). Here's an island with six countries and the sea. Redraw its borders however you like.

A few things to notice

Monsters that seem to break it

Finally, some shapes that give 3. These are the ones people argued about for a hundred years after Euler. Look carefully at each one and work out which of the "ball-like" conditions it breaks.

A few things to notice

So here, honestly, is the full rule. For any shape that is in one piece, has no holes through it, and whose faces are all simple patches (no holes in them either), corners − edges + faces = 2. Those three conditions are exactly what the proof needed: one piece so the dot-and-line map stays connected; no holes so it can be squashed flat; simple patches so each fence-line really sits between two patches. The monsters each break one of the three.

Section 12Make your own

Time to build a shape nobody has named. Get a potato, a block of cheese, a bar of soap or a lump of firm clay. You also need a table knife. Slice off flat faces at random angles. Six, seven, ten slices, wherever you like. Stop when it looks like a rough gemstone. (That's genuinely how a gem cutter starts.) Now mark every corner with a pen dot. Count the corners. Count the edges. Count the faces. Predict the answer before you add them up. If you get 2, the rule held for a shape that has never existed before. If you don't, count again. One edge is always hiding.

Or build one on screen. Start from a single dot. Grow a map with the tools below, as big and messy as you like. Then tear it down again.

Grown-up mathematicians have a name for the number. Corners − edges + faces is called the Euler characteristic of the shape. It's 2 for anything ball-like. It's 0 for anything donut-like, −2 for two holes, and so on. There is a whole subject about what stays the same when you stretch and squash, but don't tear. It's called topology. The seven bridges of Königsberg are usually called its first problem. You've now done a real piece of it.

The whole reason, in one sentence: squash any ball-like shape flat, take it apart with moves that always remove one plus and one minus together, and you end with a single dot, which scores 2.