Zero in Number Systems


Zero in Number Systems

Anna
Today we're exploring a very unusual kind of zero: a zero that eventually reveals a fractal pattern. Before we get there, let's ask the basic question: what does it mean for something to be a zero?

Michael
In ordinary arithmetic, a zero is something that lets us solve an equation like a plus x equals a. Over the counting numbers, 1, 2, 3, and so on, there is no number x that solves that equation, because subtracting a would require zero, and zero is not included.

Anna
If we enlarge the counting numbers to the natural numbers by adding zero, then x equals zero solves a plus x equals a. But the natural numbers still have a limitation. In the equation a plus x equals zero, there is a solution only when a is already zero.

Michael
To solve that equation for every integer a, we enlarge the number system again and include the negative numbers. The integers are ..., minus 3, minus 2, minus 1, 0, 1, 2, and so on. In that system, every number has an additive inverse, so a plus x equals zero can always be solved.

Anna
Sandpiles give us a very different way to build a number system. Start with a three-by-three grid. In each of the nine cells, place a number from 0 through 3. Each number represents the number of grains of sand in that cell.

Michael
So a sandpile is just a nine-entry arrangement of those numbers. For example, we could write one sandpile as 120, 211, 013, and another as 213, 101, 010, with each group of three representing one row.

Anna
Addition begins exactly as you might expect: add corresponding cells. For those two examples, the result is 333, 112, 023. The first cell is 1 plus 2, giving 3; the second is 2 plus 1, also giving 3; and the same process is applied throughout the grid.

Michael
But we are not allowed to leave a 4 or any larger number in a sandpile. If a cell reaches 4, it becomes unstable and topples. It sends one grain to each neighboring cell and loses one grain for each neighboring direction.

Anna
For a corner cell, there are two neighboring cells, while the other two directions lead off the grid. So a corner containing 4 sends one grain to each of its two neighbors, loses two grains from the grid, and becomes 0.

Michael
That is why the model is called a sandpile: grains move dynamically when a pile becomes too large. A toppling can create new unstable cells, so we continue toppling until every cell is once again 0, 1, 2, or 3.

Anna
The all-zero sandpile, 000, 000, 000, acts as the ordinary additive identity. Adding it to any sandpile changes nothing. But it is a rather boring zero for the equation a plus x equals zero.

Michael
In fact, for a nonzero sandpile a, there is no x among all the three-by-three sandpiles that makes the result completely zero. Topplings can move sand around, and sand can leave through the edges, but the entire amount of sand cannot disappear.

Anna
The reason is that every time sand is in an edge cell, it can still be sent to a neighboring cell. Only grains sent beyond the edge are lost, and that process cannot remove every grain from a nonempty starting configuration. So there is no negative sandpile for an arbitrary sandpile in the full collection.

Michael
Let's call the set of all three-by-three sandpiles M. There are four choices for each of nine cells, so basic counting gives 4 to the 9th power, or 262,144 possible sandpiles.

Anna
Instead of enlarging M by adding negative objects, as we did when moving from natural numbers to integers, we now shrink the collection. Define S to be the sandpiles obtainable by starting with the all-3s configuration, adding any extra sand we want, and then toppling until the configuration is stable.

Michael
The all-3s configuration is the fullest stable sandpile: every cell already contains the maximum allowed amount. S is much smaller than M, with roughly one hundred thousand elements rather than 262,144.

Anna
Notice that the all-zero sandpile is not in S. Starting with the all-3s configuration and adding more sand cannot eventually remove all the sand. So at first it looks as though shrinking the set has made the zero problem even worse.

Michael
But S contains a different and much more interesting zero. For example, the all-2s sandpile belongs to S, and so does 212, 101, 212. Let's add those two configurations.

Anna
Cell by cell, their initial sum is 434, 323, 434. The four corner 4s topple, producing zeros in the corners and 5s along the top, bottom, and sides around the center. Those 5s then topple, sending grains toward the center and the corners.

Michael
After the 5s topple, the corners become 2s, while the center receives enough sand to become 6. Topple that center cell, and the final configuration is 222, 222, 222: the all-2s sandpile we started with.

Anna
So adding 212, 101, 212 to the all-2s sandpile leaves the all-2s sandpile unchanged. More generally, adding this special sandpile to any element of S gives that same element back. It is the identity sandpile, or the zero, for this smaller collection.

Michael
It even passes a useful membership test. If you add this identity sandpile to something that does not come from the all-3s configuration, you do not get that same sandpile back. So the identity helps distinguish elements in S from configurations outside S.

Anna
There is another striking feature: the identity is unchanged when added to itself. Doubling 212, 101, 212 gives 424, 202, 424. Topple the four corner 4s, then topple the center, and the result is again 212, 101, 212.

Michael
This means the special sandpile really behaves like zero under the addition defined on S. The point is not that every possible sandpile has this property, but that the restricted set S has been chosen so that this identity and additive inverses exist.

Anna
For example, to find a negative sandpile for the all-3s configuration, we can use 333, 313, 333. Adding that to the all-3s configuration and then toppling produces 212, 101, 212, the zero of S.

Michael
The all-2s configuration also has an inverse within S: 232, 323, 232. Adding it to the all-2s sandpile and carrying out the topplings gives the same identity sandpile.

Anna
And this works for every sandpile that comes from the all-3s configuration. Within S, the equation a plus x equals the identity always has a solution. That is the sandpile analogue of how every integer has an additive inverse.

Michael
Now the word fractal enters the story. The identity depends on the size and shape of the grid. On a two-by-two grid, considering the sandpiles that arise from the all-3s configuration, the identity is simply the all-2s configuration, written 22, 22.

Anna
For a three-by-three grid, the identity is 212, 101, 212. On a four-by-four grid, it is 2332, 3223, 3223, 2332. On a five-by-five grid, it is 23232, 32123, 21012, 32123, 23232.

Michael
These patterns are symmetric, which makes sense because the square grid itself is symmetric. There is an algorithm that can compute the identity sandpile for any rectangular grid, although for very large grids the computation can take an extremely long time.

Anna
On a 400-by-400 grid, the identity can be displayed as a colorful image. Black represents zero grains, yellow represents one, blue represents two, and red represents three.

Michael
The image has the expected symmetry, but it also contains intricate repeating structures at different scales. That is the fractal feature: the identity sandpile is not just a simple symmetric pattern, but a highly detailed structure whose exact mathematical description is still an interesting subject of study.

Anna
On average, the density of sand in this large identity picture is between two and three grains per cell, and is approximately 2.1. So the pattern is close to an average of two grains, even though its local arrangement is much more complicated.

Michael
The same game can be played on other kinds of grids, including hexagonal and triangular grids. Changing the grid changes the neighbors, the toppling rule, and the resulting identity sandpile.

Anna
We can also study an infinite grid. Imagine placing 2 to the 30th grains of sand on one cell and then repeatedly toppling. The avalanche spreads outward, but it occupies a finite region with a recognizable boundary.

Michael
When that infinite-grid result is colored by height, the picture looks roughly circular. Blue represents zero, a lighter blue represents one, yellow represents two, and red represents three. Zooming in reveals an intricate fractal-like structure inside the apparently simple circular shape.

Anna
On a triangular grid, each cell has more neighbors, so a cell can hold more sand before it topples. In that setting, a stable pile can reach 5, and the additional possible heights create a different collection of colors and another fractal-looking pattern.

Michael
So the central lesson is that changing the number system does not always mean adding more numerical values. With sandpiles, we restrict the configurations, redefine addition using toppling, and discover a new identity sandpile that acts as zero and has inverses within the restricted set.

Anna
And when the grid becomes large, that zero is no longer visually boring. Its symmetry and self-similar detail produce a fractal pattern, connecting an abstract algebraic identity with a beautiful geometric object.

Ask anything
We've read this whole study set, so questions about it get the best answers.