97Maths

Why four colours are enough

Any map can be coloured with four colours so that neighbours never match. Colour a made-up map, see why three are sometimes not enough and see how a quick rule can waste colours.

The map room

Four colours, for any map

Take any map drawn on a flat sheet, with regions that share borders. Colour it so that no two regions that share a border have the same colour. The question is how many colours you need. For every map ever drawn, the answer is four. No map needs five. That is the four colour theorem, and it took mathematicians more than a hundred years to prove.

Three tables in the map room. On the first, colour a made-up map by hand. On the second, see why some maps cannot be done with three colours. On the third, let a quick rule colour the map, and see that it can waste colours. Regions that only touch at a point do not count as neighbours. Without a script each table shows one picture.

First table

Colour a map by hand

Here is a made-up map with eleven regions: a hub, a ring of five inside, and a ring of five outside, turned half a step. Pick a colour, then press a region to give it that colour. Each region shows the number of its colour, so you can tell them apart without the colours.

Regions that share a border and have the same colour are marked with a dark outline, and the page counts them. Try to colour the whole map with no clashes. You can do it with four colours. The page also tells you how many colours you used.

12323414123

This colouring uses 4 colours and no two neighbours match.

Second table

Why three is sometimes not enough

Take a hub with a ring of regions round it, like the spokes of a wheel. Every ring region touches the hub and its two neighbours on the ring. The hub needs its own colour. The ring regions can then use two more colours, taking turns, round the ring. If the ring has an even number of regions, the turns come out even, and three colours are enough.

If the ring has an odd number, the last region meets the first and they would be the same colour. A third colour is needed on the ring, and with the hub that makes four. Slide the number of ring regions and press Try three colours. The page runs a full search and shows a colouring, or tells you there is none.

123234
Colours needed for a hub with a ring of regions round it
Regions on the ringColours needed
34
43
54
63
74
83

Five ring regions need four colours: the hub, and three more round an odd ring.

Third table

A quick rule can waste colours

A simple way to colour a map is to go through the regions in some order and give each the first colour its neighbours have not used. This is called a greedy colouring. It is quick, and it always gives a valid colouring, but the number of colours depends on the order.

Press New order. The same made-up map gets four, five or six colours, depending on the order, though four are always enough. Press Search for the fewest to run a full search, which finds a colouring with four. The four colour theorem says four always exist. It does not say that a quick rule will find them.

53134224214
Colours used by the quick rule for six different orders
OrderColours used
Order 15
Order 25
Order 36
Order 44
Order 54
Order 65

The quick rule used 5 colours on this order. Four are always enough.

Key takeaways

  1. No map needs more than four colours, if regions that only meet at a point are not neighbours. This is the four colour theorem.
  2. Some maps do need four. A hub with a ring of an odd number of regions round it cannot be done with three.
  3. A quick rule that colours the regions one at a time can use more than four colours. The theorem says four are enough, not that every method finds them.
  4. The problem was posed in 1852, a flawed proof was published in 1879, five colours were proved in 1890 and four in 1976, with the help of a computer.
  5. The map on this page is made up. The counts come from running the searches on the page.

Sources

Some of these sites could not be opened while this page was written, so some facts were checked through search results that quote them. The question posed by Francis Guthrie in 1852, the flawed proof of 1879 found out in 1890 by Heawood who proved five colours, the computer proof of Appel and Haken of 1976, and the shorter proof of Robertson, Sanders, Seymour and Thomas appeared in several places, and sources differ on the year of the last one (1994, 1996 or 1997) and on the date of Kempe’s proof, so the page says only that it followed in the 1990s and gives 1879 for Kempe, which is the usual year. That a wheel with an even rim needs three colours and one with an odd rim needs four appeared in several places, and the sources count the hub in the number of points in different ways, so the page uses the number of ring regions. That regions meeting only at a point do not count as neighbours is the usual rule and no source was found for it in the search. That a greedy colouring can use more colours than needed was found by running it on the page and is not from a source. The map is made up and the counts of colours come from running the searches. Nothing here is advice.