A300006 Matrices of the 2 X 2 sandpile group, with matrix [a,b;c,d] encoded as concat(a,b,c,d), leading 0 omitted.
112, 113, 121, 122, 123, 131, 132, 133, 211, 212, 213, 220, 221, 222, 223, 230, 231, 232, 233, 311, 312, 313, 320, 321, 322, 323, 330, 331, 332, 333, 1012, 1013, 1021, 1022, 1023, 1031, 1032, 1033, 1102, 1103, 1112, 1113, 1120, 1121, 1122, 1123, 1130, 1131
Offset: 1
Examples
a(1) = 0112 represents the matrix A = [0,1;1,2]. As illustration, add this to E2 = [2,2;2,2]: A + E2 = [2,3;3,4], and the 4 "topples": it gets 4 subtracted and both neighbors (the two 3's) get incremented by 1, thus: [2,4;4;0]. Now the two 4's topple, each one incrementing the 2 and the 0 by one: [4,0;0,2]. Once again the 4 topples: [0,1;1,2]. This is the result: A (+) E2 = A. a(116) = 2222 represents E2 = [2,2;2,2], which is the only nonzero 2 X 2 matrix such that M (+) M = M. (Indeed, 2222 + 2222 = 4444 -> 2222, as each 4 topples to 0 and gets +1 from each of its 2 neighbors.) It is (by definition) the neutral element in S2 := { A in M_2(Z) | A (+) E2 = A }, and it turns out that there is an opposite or inverse A' for each A in S(2), such that A (+) A' = E2. (This would not be the case for the zero matrix.)
Links
- M. F. Hasler, Table of n, a(n) for n = 1..192
- L. David Garcia-Puente, in Sandpiles, Numberphile video, on YouTube.com, Jan 13 2017
Crossrefs
Programs
-
PARI
spa(A,B=0,C=0*A[,1],R=0*A[1,])={A+=B; while(B=A\4,A+=concat(B[,^1], C)+concat(C,B[,^-1])+concat(B[^1,],R)+concat(R,B[^-1,])-4*B); A} \\ sandpile addition; without 2nd arg only "topple" S2=List(); forvec(v=vector(4,i,[2,5]), listput(S2,spa(Mat([v[1..2],v[3..4]]~)))); S2=Set(S2) \\ The 2 X 2 sandpile group as subset of 2 X 2 matrices with coefficients in [0..3], here determined by adding an arbitrary matrix 2 X 2 to the matrix E2 = [2,2;2,2]; equivalently one could select the 2 X 2 matrices invariant under sandpile-addition of E2: see also A007341. A300006=apply( m2d=M->fromdigits(concat(Col(M~)~)), S2) \\ matrix-to-decimal encoding. Use transpose because PARI sorts matrices [a,b;c,d] as (a,c,b,d).
Comments