1. Home
  2. Explore
  3. Mathematics
  4. Zero in Number Systems

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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

a+x=aa+x=aa+x=a

to have a solution. The solution is called the zero because adding it to aaa leaves aaa unchanged.

Zero in different number systems

  • Counting numbers: If the counting numbers are defined as

    1,2,3,4,…1,2,3,4,\ldots1,2,3,4,…

    then there is no counting number xxx satisfying a+x=aa+x=aa+x=a. The counting numbers do not contain zero.

  • Natural numbers: If zero is included, the natural numbers become

    0,1,2,3,4,…0,1,2,3,4,\ldots0,1,2,3,4,…

    In this system, the equation a+x=aa+x=aa+x=a has the solution

    x=0.x=0.x=0.

    However, the natural numbers cannot always solve equations of the form

    a+x=0.a+x=0.a+x=0.

    If a=0a=0a=0, then x=0x=0x=0 works. If a≠0a\neq 0a=0, there is no natural number that can be added to aaa to produce zero.

  • Integers: To solve equations such as a+x=0a+x=0a+x=0 for every integer aaa, negative numbers are added:

    …,−3,−2,−1,0,1,2,3,…\ldots,-3,-2,-1,0,1,2,3,\ldots…,−3,−2,−1,0,1,2,3,…

    Every integer has an additive inverse. For example, the additive inverse of 333 is −3-3−3, because

    3+(−3)=0.3+(-3)=0.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

0,1,2, or 3.0,1,2,\text{ or }3.0,1,2, or 3.

Each number represents the number of grains of sand in that cell.

A sandpile can be written as a 3×33\times 33×3 array, such as

120211013.\begin{matrix} 1&2&0\\ 2&1&1\\ 0&1&3 \end{matrix}.120​211​013​.

Because every cell has four possible values and there are nine cells, the total number of possible three-by-three sandpiles is

49=262,144.4^9=262{,}144.49=262,144.

Thus, the set of all three-by-three sandpiles contains 262,144262{,}144262,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

120211013+213101010.\begin{matrix} 1&2&0\\ 2&1&1\\ 0&1&3 \end{matrix} + \begin{matrix} 2&1&3\\ 1&0&1\\ 0&1&0 \end{matrix}.120​211​013​+210​101​310​.

Adding corresponding entries gives

333312023.\begin{matrix} 3&3&3\\ 3&1&2\\ 0&2&3 \end{matrix}.330​312​323​.

This result is already a valid sandpile because every entry is between 000 and 333.

Why ordinary cell-by-cell addition is not enough

Cell-by-cell addition can produce a number greater than 333. For example, if corresponding cells contain 222 and 222, their sum is 444.

Since sandpile entries are required to be 000, 111, 222, or 333, a cell containing 444 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:

  1. It loses four grains of sand.

  2. It sends one grain to each of its four neighbors.

Symbolically, the cell changes by

−4-4−4

while each neighboring cell changes by

+1.+1.+1.

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:

  1. It loses four grains.

  2. It sends one grain to each of its two neighbors.

  3. Two grains leave the grid.

For example, a corner containing 444 becomes 000, 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

000000000.\begin{matrix} 0&0&0\\ 0&0&0\\ 0&0&0 \end{matrix}.000​000​000​.

Adding it to any sandpile changes nothing:

A+0=A.A+0=A.A+0=A.

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

A+X=0,A+X=0,A+X=0,

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 SSS

The sandpile system is restricted to a smaller collection of configurations.

Let MMM denote the set of all stable sandpiles on the three-by-three grid. The set MMM has

49=262,1444^9=262{,}14449=262,144

elements.

The maximal sandpile

The sandpile containing three grains in every cell is called the maximal sandpile:

333333333.\begin{matrix} 3&3&3\\ 3&3&3\\ 3&3&3 \end{matrix}.333​333​333​.

It contains the greatest possible amount of sand while remaining stable.

Definition of SSS

The set SSS consists of all stable sandpiles that can be obtained by:

  1. Starting with the maximal sandpile.

  2. Adding any other sandpile or collection of grains.

  3. Toppling unstable cells until the result is stable.

In other words, SSS is the collection of sandpiles that arise from the all-three configuration after adding sand and stabilizing.

This set is much smaller than MMM. Whereas MMM contains 262,144262{,}144262,144 configurations, SSS contains roughly one hundred thousand configurations.

Example of generating an element of SSS

Start with

333333333\begin{matrix} 3&3&3\\ 3&3&3\\ 3&3&3 \end{matrix}333​333​333​

and add one grain to the center:

333343333.\begin{matrix} 3&3&3\\ 3&4&3\\ 3&3&3 \end{matrix}.333​343​333​.

The center topples, producing

343404343.\begin{matrix} 3&4&3\\ 4&0&4\\ 3&4&3 \end{matrix}.343​404​343​.

The four edge cells containing 444 topple. Each becomes 000, 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

131333131.\begin{matrix} 1&3&1\\ 3&3&3\\ 1&3&1 \end{matrix}.131​333​131​.

This sandpile belongs to SSS.


7. The Identity Sandpile in SSS

The all-zero sandpile is not in SSS. Starting from the maximal sandpile and adding more sand cannot eliminate every grain and produce the all-zero configuration.

Nevertheless, SSS has its own identity element:

e=212101212.e= \begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.e=212​101​212​.

This sandpile acts like zero for every element of SSS.

For every sandpile A∈SA\in SA∈S,

A+e=A.A+e=A.A+e=A.

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

A=222222222A= \begin{matrix} 2&2&2\\ 2&2&2\\ 2&2&2 \end{matrix}A=222​222​222​

and the candidate identity

e=212101212.e= \begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.e=212​101​212​.

Their cell-by-cell sum is

434323434.\begin{matrix} 4&3&4\\ 3&2&3\\ 4&3&4 \end{matrix}.434​323​434​.

The four corner 444s topple, giving

050525050.\begin{matrix} 0&5&0\\ 5&2&5\\ 0&5&0 \end{matrix}.050​525​050​.

The four edge 555s then topple. Each becomes 111, sends grains to neighboring cells, and causes the center to increase from 222 to 666. After the center topples, the final stable configuration is again

222222222.\begin{matrix} 2&2&2\\ 2&2&2\\ 2&2&2 \end{matrix}.222​222​222​.

Therefore,

A+e=A.A+e=A.A+e=A.

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 SSS

The identity sandpile can be used to determine whether a stable sandpile belongs to SSS.

  • If A∈SA\in SA∈S, then adding the identity leaves it unchanged:

    A+e=A.A+e=A.A+e=A.
  • If a sandpile does not arise from the maximal sandpile, adding eee does not generally return the same sandpile.

Thus, the identity provides a test:

  1. Take a candidate sandpile.

  2. Add the identity sandpile.

  3. Stabilize the result.

  4. Compare the result with the original candidate.

If the configuration is unchanged, it behaves as an element of the special set SSS.


9. The Identity Is Idempotent

The identity sandpile remains unchanged when added to itself:

e+e=e.e+e=e.e+e=e.

Indeed,

212101212+212101212=424202424.\begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix} + \begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix} = \begin{matrix} 4&2&4\\ 2&0&2\\ 4&2&4 \end{matrix}.212​101​212​+212​101​212​=424​202​424​.

The four corner 444s topple. The resulting configuration contains an unstable center, which then topples. After stabilization, the configuration returns to

212101212.\begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.212​101​212​.

An element satisfying

e+e=ee+e=ee+e=e

is called idempotent. The sandpile identity is therefore an idempotent element under stabilized addition.


10. Additive Inverses in SSS

Although the full set of sandpiles does not generally contain additive inverses, every element of SSS does.

The relevant equation is

A+X=e,A+X=e,A+X=e,

where eee is the identity sandpile of SSS.

For each A∈SA\in SA∈S, there is a corresponding sandpile X∈SX\in SX∈S that acts as its additive inverse or “negative sandpile.” The inverse is unique within SSS.

Example: inverse of the maximal sandpile

The maximal sandpile is

333333333.\begin{matrix} 3&3&3\\ 3&3&3\\ 3&3&3 \end{matrix}.333​333​333​.

A sandpile that acts as its inverse is

333313333.\begin{matrix} 3&3&3\\ 3&1&3\\ 3&3&3 \end{matrix}.333​313​333​.

Adding these and stabilizing produces the identity:

212101212.\begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.212​101​212​.

Thus, within SSS, the sandpile

333313333\begin{matrix} 3&3&3\\ 3&1&3\\ 3&3&3 \end{matrix}333​313​333​

plays the role of the negative of the maximal sandpile.

Example: inverse of the all-two sandpile

The all-two sandpile is

222222222.\begin{matrix} 2&2&2\\ 2&2&2\\ 2&2&2 \end{matrix}.222​222​222​.

One of its inverses in SSS is

232323232.\begin{matrix} 2&3&2\\ 3&2&3\\ 2&3&2 \end{matrix}.232​323​232​.

Adding this sandpile to the all-two sandpile and stabilizing gives the identity eee.

The special set SSS 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

3333.\begin{matrix} 3&3\\ 3&3 \end{matrix}.33​33​.

The identity sandpile for the corresponding set generated from this maximal configuration is

2222.\begin{matrix} 2&2\\ 2&2 \end{matrix}.22​22​.

Three-by-three grid

For a three-by-three grid, the identity is

212101212.\begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.212​101​212​.

Four-by-four grid

For a four-by-four grid, the identity is

2332322332232332.\begin{matrix} 2&3&3&2\\ 3&2&2&3\\ 3&2&2&3\\ 2&3&3&2 \end{matrix}.2332​3223​3223​2332​.

Five-by-five grid

For a five-by-five grid, the identity is

2323232123210123212323232.\begin{matrix} 2&3&2&3&2\\ 3&2&1&2&3\\ 2&1&0&1&2\\ 3&2&1&2&3\\ 2&3&2&3&2 \end{matrix}.23232​32123​21012​32123​23232​.

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×400400\times 400400×400 identity sandpile can be represented with colors:

  • Black: 000 grains

  • Yellow: 111 grain

  • Blue: 222 grains

  • Red: 333 grains

The image has two major features:

  1. Large-scale symmetry: The arrangement reflects the symmetry of the square grid.

  2. 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 333, because no stable cell can contain more than 333 grains.

  • The density is greater than 222.

  • The density is approximately 2.12.12.1.

Thus, despite the complicated appearance, the average number of grains per cell is close to 222.


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×105\times 105×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

2302^{30}230

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 000 through 555.

  • 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 SSS is generated by starting with the maximal sandpile, adding sand, and stabilizing.

The identity of SSS is not the all-zero configuration. On a three-by-three square grid, it is

212101212.\begin{matrix} 2&1&2\\ 1&0&1\\ 2&1&2 \end{matrix}.212​101​212​.

Every element of SSS 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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent