◍ Hidden Spheres · exhibit nº 27

The Village of Six

put the houses wherever you like. the plots have six sides each, on average, exactly

Every house in this village owns the land that is nearer to it than to any other house. That land is its plot. Some plots come out with four sides, some with nine. Count the sides of all of them, divide by the number of houses, and you get six. Not about six. Six. Then drag a house somewhere else and count again.

drag a house. click empty land to build one.

For the curious kid.

Drag any house. Its plot changes shape, and so do its neighbours'. One gains a side, another loses one. Watch the big number on the right while you do it. It does not flicker. Blue plots have fewer than six sides and gold plots have more, and every time a blue one appears, some gold appears to pay for it. Click on empty land to build a new house: the newcomer takes a plot from its neighbours and the average is still six.

Now press Rows. Every plot is a square, and the number says four. Did the rule break? Look at the corners. In the scattered village three plots meet at every corner. In the rows, four do. That is the one thing the rule needs: corners of three. Press Shake, which nudges every house a little. Each four-way corner splits into two three-way corners with a short new border between them, and the number snaps back to six. The rows were balanced on a pin.

Press Even out. Each house walks to the middle of its own plot, over and over. The village settles toward a honeycomb, which is what bees found and what every plot having exactly six looks like. But a few fives and sevens stay behind, and they stay in pairs. You can chase them around. You cannot have one without the other.

Deeper.

The reason is a formula of Euler's about maps. Draw any map on a surface and count its corners V, its borders E and its regions F. Then V − E + F is a number that depends only on the surface, not on the map. This village lives on a square whose right edge is joined to its left and whose top is joined to its bottom, the world of old arcade games, and for that surface the number is 0. The page counts the three things separately (plots by houses, borders by pairs of neighbours, corners by where they are) and shows you the sum. It is 0 for every village you can make.

Now the arithmetic. Every border has two ends, so there are 2E ends. If three plots meet at every corner then three borders end there, so 3V = 2E. Put V = 2E/3 into V − E + F = 0 and you get E = 3F. Every border is a side of exactly two plots, so the plots have 2E = 6F sides between them. Six each, on average. Nothing in that argument mentions distance, or shape, or chance. It only needs the corners to be threes, and they are, unless four houses sit exactly on one circle with no house inside it, which is what rows arrange and what any nudge destroys. On a plain with a rim the plots at the rim spoil the count slightly; a world with no edge has no rim, which is why the six here is exact.

What chance adds is the spread. For houses scattered purely at random, how often does a plot have five sides, or eight? That is no longer arithmetic. An exact formula, a hard multiple integral, was found only in 2003 by Pierre Calka: 1.12% triangles, 10.69% four-sided, 25.95% five, 29.47% six, 19.88% seven, 9.01% eight, and a thinning tail. The dots on the chart are those numbers. Press A hundred villages and the gold marks, which are your count, land on them; the page checked 300,000 plots against the same numbers before it showed you anything. A second exact fact rides along in the line under the buttons: the average walk around a plot is 4 divided by the square root of the number of houses (Meijering, 1953).

The same six turns up wherever space is shared out between neighbours and the corners are threes: in a froth of soap between two panes of glass, in the skin of a leaf, in the basalt columns of the Giant's Causeway, in drying mud. None of them is aiming at six. On a round world, incidentally, the count comes out twelve sides short, always, whatever the houses do. This room knows that world too.

Nobody plans the six. It is what is left over when every corner is a meeting of three.