Zero in Number Systems
Sandpile Numbers and Fractal Zeroes
1. What Is a Zero?
In arithmetic, a zero is an element that allows an equation of the form
to have a solution. The solution is called the zero because adding it to a leaves a unchanged.
Zero in different number systems
Counting numbers: If the counting numbers are defined as
1,2,3,4,…then there is no counting number x satisfying a+x=a. The counting numbers do not contain zero.
Natural numbers: If zero is included, the natural numbers become
0,1,2,3,4,…In this system, the equation a+x=a has the solution
x=0.However, the natural numbers cannot always solve equations of the form
a+x=0.If a=0, then x=0 works. If a=0, there is no natural number that can be added to a to produce zero.
Integers: To solve equations such as a+x=0 for every integer a, negative numbers are added:
…,−3,−2,−1,0,1,2,3,…Every integer has an additive inverse. For example, the additive inverse of 3 is −3, because
3+(−3)=0.
The sandpile system provides a different way to obtain a number system with a zero and additive inverses. Instead of enlarging the natural numbers by adding negative numbers, the sandpile system selects a special subset of sandpiles.
2. Sandpiles on a Grid
A sandpile is an arrangement of numbers on the cells of a grid. For a three-by-three grid, each of the nine cells contains one of the numbers
Each number represents the number of grains of sand in that cell.
A sandpile can be written as a 3×3 array, such as
Because every cell has four possible values and there are nine cells, the total number of possible three-by-three sandpiles is
Thus, the set of all three-by-three sandpiles contains 262,144 elements.
3. Addition of Sandpiles
Sandpiles are first added cell by cell. Corresponding entries in the two arrays are added together.
For example, consider
Adding corresponding entries gives
This result is already a valid sandpile because every entry is between 0 and 3.
Why ordinary cell-by-cell addition is not enough
Cell-by-cell addition can produce a number greater than 3. For example, if corresponding cells contain 2 and 2, their sum is 4.
Since sandpile entries are required to be 0, 1, 2, or 3, a cell containing 4 or more grains is called unstable. It must be changed through a process called toppling.
4. The Toppling Rule
A cell topples when it contains at least four grains of sand.
Interior cells
On a square grid, an interior cell has four neighboring cells: one above, one below, one to the left, and one to the right.
When an interior cell topples:
It loses four grains of sand.
It sends one grain to each of its four neighbors.
Symbolically, the cell changes by
while each neighboring cell changes by
Edge cells
An edge cell that is not a corner has three neighboring cells. When it topples, it still loses four grains, but only three grains are sent to neighboring cells. The remaining grain leaves the grid.
Corner cells
A corner cell has only two neighboring cells. When it topples:
It loses four grains.
It sends one grain to each of its two neighbors.
Two grains leave the grid.
For example, a corner containing 4 becomes 0, and each of its two neighboring cells receives one grain.
Toppling stabilizes a sandpile by moving grains away from overloaded cells. Grains can leave the system only through the boundary of the grid.
The toppling process continues until every cell contains at most three grains. The final configuration is called the stable sandpile.
Order of topplings
Several cells may be unstable simultaneously. They can be toppled one at a time or simultaneously. The resulting stable sandpile is independent of the order of topplings, so the addition operation is well-defined after stabilization.
5. The Ordinary Zero Sandpile
The all-zero sandpile is
Adding it to any sandpile changes nothing:
Therefore, the all-zero sandpile is the identity element for the full collection of sandpiles.
However, it does not provide additive inverses for arbitrary sandpiles. If one tries to solve
there is usually no solution. The reason is that sandpiles contain only nonnegative amounts of sand, and toppling cannot remove all grains from the system.
Why toppling cannot produce the all-zero sandpile
Toppling can remove sand only when a cell lies on the boundary:
An interior cell sends all four grains to neighboring cells.
An edge cell sends three grains to neighbors, with one grain leaving.
A corner sends two grains to neighbors, with two grains leaving.
Even though some grains leave through the boundary, other grains continue moving among the cells. Starting from a nonzero sandpile, the entire configuration cannot generally be reduced to the all-zero sandpile. Thus, the full set of sandpiles has a zero but does not behave like the integers.
6. Constructing the Special Set S
The sandpile system is restricted to a smaller collection of configurations.
Let M denote the set of all stable sandpiles on the three-by-three grid. The set M has
elements.
The maximal sandpile
The sandpile containing three grains in every cell is called the maximal sandpile:
It contains the greatest possible amount of sand while remaining stable.
Definition of S
The set S consists of all stable sandpiles that can be obtained by:
Starting with the maximal sandpile.
Adding any other sandpile or collection of grains.
Toppling unstable cells until the result is stable.
In other words, S is the collection of sandpiles that arise from the all-three configuration after adding sand and stabilizing.
This set is much smaller than M. Whereas M contains 262,144 configurations, S contains roughly one hundred thousand configurations.
Example of generating an element of S
Start with
and add one grain to the center:
The center topples, producing
The four edge cells containing 4 topple. Each becomes 0, sends one grain to the center, and contributes grains to the corners. This creates new unstable cells, so further topplings are required.
After continuing until the configuration is stable, the resulting sandpile is
This sandpile belongs to S.
7. The Identity Sandpile in S
The all-zero sandpile is not in S. Starting from the maximal sandpile and adding more sand cannot eliminate every grain and produce the all-zero configuration.
Nevertheless, S has its own identity element:
This sandpile acts like zero for every element of S.
For every sandpile A∈S,
Because its pattern resembles a self-repeating structure in larger grids, this identity is described as a fractal zero.
Verifying the identity property
Consider the all-two sandpile
and the candidate identity
Their cell-by-cell sum is
The four corner 4s topple, giving
The four edge 5s then topple. Each becomes 1, sends grains to neighboring cells, and causes the center to increase from 2 to 6. After the center topples, the final stable configuration is again
Therefore,
The identity does not necessarily look like an ordinary all-zero configuration. Its identity behavior is produced by the toppling dynamics.
8. Testing Membership in S
The identity sandpile can be used to determine whether a stable sandpile belongs to S.
If A∈S, then adding the identity leaves it unchanged:
A+e=A.If a sandpile does not arise from the maximal sandpile, adding e does not generally return the same sandpile.
Thus, the identity provides a test:
Take a candidate sandpile.
Add the identity sandpile.
Stabilize the result.
Compare the result with the original candidate.
If the configuration is unchanged, it behaves as an element of the special set S.
9. The Identity Is Idempotent
The identity sandpile remains unchanged when added to itself:
Indeed,
The four corner 4s topple. The resulting configuration contains an unstable center, which then topples. After stabilization, the configuration returns to
An element satisfying
is called idempotent. The sandpile identity is therefore an idempotent element under stabilized addition.
10. Additive Inverses in S
Although the full set of sandpiles does not generally contain additive inverses, every element of S does.
The relevant equation is
where e is the identity sandpile of S.
For each A∈S, there is a corresponding sandpile X∈S that acts as its additive inverse or “negative sandpile.” The inverse is unique within S.
Example: inverse of the maximal sandpile
The maximal sandpile is
A sandpile that acts as its inverse is
Adding these and stabilizing produces the identity:
Thus, within S, the sandpile
plays the role of the negative of the maximal sandpile.
Example: inverse of the all-two sandpile
The all-two sandpile is
One of its inverses in S is
Adding this sandpile to the all-two sandpile and stabilizing gives the identity e.
The special set S behaves algebraically like the integers: it has an identity element, and every element has an additive inverse.
The crucial difference is that the inverse is not represented by negative entries. Instead, it is represented by another nonnegative sandpile whose toppling behavior produces the identity.
11. Identity Sandpiles on Other Grids
The same construction works on grids of different sizes and shapes.
Two-by-two grid
For a two-by-two grid, the maximal sandpile is
The identity sandpile for the corresponding set generated from this maximal configuration is
Three-by-three grid
For a three-by-three grid, the identity is
Four-by-four grid
For a four-by-four grid, the identity is
Five-by-five grid
For a five-by-five grid, the identity is
These identities display strong symmetry. The symmetry comes from the symmetry of the underlying square grid and from the uniformity of the maximal starting configuration.
12. Fractal Structure of Large Identity Sandpiles
For small grids, the identity sandpiles can be written as arrays. For very large grids, their patterns become visually complex.
A 400×400 identity sandpile can be represented with colors:
Black: 0 grains
Yellow: 1 grain
Blue: 2 grains
Red: 3 grains
The image has two major features:
Large-scale symmetry: The arrangement reflects the symmetry of the square grid.
Fractal structure: Smaller regions contain intricate patterns that resemble the overall organization of the entire configuration.
The identity is not a random arrangement. It contains detailed, organized patterns at many scales. Determining an exact mathematical description of this fractal structure remains difficult.
Density of the large identity
The density of a sandpile is the average number of grains per cell.
For the large square-grid identity:
The average density is less than 3, because no stable cell can contain more than 3 grains.
The density is greater than 2.
The density is approximately 2.1.
Thus, despite the complicated appearance, the average number of grains per cell is close to 2.
13. Other Grid Shapes
The sandpile rules can be adapted to other types of grids.
Hexagonal grids
On a hexagonal grid, each cell has a different number of neighbors than on a square grid. The toppling threshold changes accordingly, and the resulting identity sandpile has a different structure.
Triangular grids
On a triangular grid, each cell has six neighboring cells. A cell can therefore hold up to five grains while remaining stable. A cell containing six grains topples, sending one grain to each of its six neighbors.
Because the cells have more neighbors:
The maximum stable value is larger.
More grain values are possible.
The identity configuration uses more colors when visualized.
The resulting patterns have a different type of fractal appearance.
Rectangular grids
The construction also applies to rectangular grids such as a 5×10 grid. The identity remains constrained by the geometry and symmetry of that rectangle.
14. Infinite-Grid Avalanches
The sandpile process can also be studied on an infinite grid.
A typical experiment begins by placing a very large number of grains on one cell, such as
grains, and placing no grains elsewhere. The unstable cell topples repeatedly, causing an expanding avalanche.
Shape of the avalanche
On an infinite square grid, the avalanche produces a pattern that is approximately circular. Even though grains move according to local rules, the overall expansion preserves a large-scale circular structure.
After stabilization:
The region reached by the avalanche is finite.
Outside the avalanche’s perimeter, cells contain no grains.
The interior contains a structured arrangement of values.
Zooming into the image reveals highly intricate, fractal-like patterns.
The circular shape reflects the symmetry of the square lattice at large scales, while the fine structure reflects the discrete toppling rules.
Triangular-grid avalanches
A similar experiment on a triangular grid produces a different fractal pattern. Since each cell has six neighbors rather than four:
The toppling threshold is higher.
A stable cell can contain values from 0 through 5.
The avalanche has a different geometry.
The resulting image contains a different symmetry and fractal organization.
These examples demonstrate that sandpile fractals depend strongly on the underlying grid and its neighborhood structure.
15. Key Concepts
A sandpile is a grid configuration in which each cell stores a number of grains of sand.
A cell becomes unstable when its number of grains reaches the number of neighboring cells in the relevant grid.
Toppling removes one threshold’s worth of grains from an unstable cell and distributes one grain to each neighbor, with boundary grains allowed to leave the grid.
The special set S is generated by starting with the maximal sandpile, adding sand, and stabilizing.
The identity of S is not the all-zero configuration. On a three-by-three square grid, it is
212101212.
Every element of S has an additive inverse under stabilized sandpile addition.
The sandpile system shows that a zero does not have to look like a conventional all-zero object. Its defining property is algebraic: when added to another element of the relevant system, it leaves that element unchanged. In large grids, this identity can display a complex, self-similar fractal structure.

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