cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A307097 Number of configurations in the repeating cycle of the sandpile model in a bounded square of size 2n+1.

Original entry on oeis.org

2, 4, 4, 4, 6, 6, 8, 6, 10, 18, 26, 10, 10, 8, 12, 30, 8, 32, 14, 32, 52, 26, 60, 52, 34, 74, 14, 80, 36, 38, 24, 54, 26, 30, 36, 58, 22, 14, 26, 36, 38, 20, 36, 60, 24, 24, 18, 14, 24, 34, 70, 104, 48, 56, 36, 50, 50, 48, 152, 28, 110, 30, 172, 64, 104, 158, 150, 60, 36, 186, 52, 50
Offset: 1

Views

Author

Scott R. Shannon, Mar 24 2019

Keywords

Comments

The Abelian sandpile model considers the behavior of grains of sand on a square grid when a square topples sand to its nearest neighbors when the number of grains in the square is greater than or equal to 4, where 4 is the number of nearest neighbors. If the grid is instead bounded by a square box then it is natural to extend this rule so that squares on the border also topple when they contain more or the same number of grains as the number of their nearest neighbors, i.e., 2 for corner squares, 3 for edge squares. Unlike the standard Abelian sandpile model on a finite grid, the square grid in this model does not lose sand, and assuming one keeps adding sand to the grid after each topple stabilization, eventually a critical number of grains will be added such that the resulting configurations will cycle. This sequence {a(n)} is the number of configurations in the cycle, for the sandpile model bounded by a square of size 2n+1, assuming the square grid starts with no sand and sand is continuously added to the center square until a cycle first occurs. As the toppling in a given area will repeat indefinitely, once the repeating cycle state is reached, one cannot topple the unstable squares in any random order and reach a stable configuration. To avoid such issues all squares are toppled simultaneously.

Examples

			For n=1 the square size is 2*1+1 = 3. The number of sand grains in each square is shown below, after the addition of 4, 8 and 12 grains to the central square:
.
   After 4         After 8         After 12
+---+---+---+   +---+---+---+   +---+---+---+
| 0 | 1 | 0 |   | 0 | 2 | 0 |   | 0 | 3 | 0 |
+---+---+---+   +---+---+---+   +---+---+---+
| 1 | 0 | 1 |   | 2 | 0 | 2 |   | 3 | 0 | 3 |
+---+---+---+   +---+---+---+   +---+---+---+
| 0 | 1 | 0 |   | 0 | 2 | 0 |   | 0 | 3 | 0 |
+---+---+---+   +---+---+---+   +---+---+---+
.
The edge squares now contain 3 grains, which means they are unstable as 3 equals their nearest neighbor count. This configuration thus topples to:
.
+---+---+---+
| 2 | 0 | 2 |
+---+---+---+
| 0 | 4 | 0 |
+---+---+---+
| 2 | 0 | 2 |
+---+---+---+
.
The central square is again unstable, as are the four corner squares as they contain 2 grains. This configuration topples to:
.
+---+---+---+
| 0 | 3 | 0 |
+---+---+---+
| 3 | 0 | 3 |
+---+---+---+
| 0 | 3 | 0 |
+---+---+---+
.
This is the same as the configuration after 12 grains above. These last two configurations cycle forever, thus a(1) = 2.
		

Crossrefs

Cf. A007341 (order of the sandpile group of the (n-1)X(n-1) grid graph).