The Abelian sandpile models feature a finite Abelian group $G$ generated by the operators corresponding to particle addition at various sites. We study the canonical decomposition of $G$ as a product of cyclic groups $G = Z_{d_1} \times Z_{d_2} \times Z_{d_3} \cdots \times Z_{d_g}$ where $g$ is the least number of generators of $G$, and $d_i$ is a multiple of $d_{i+1}$. The structure of $G$ is determined in terms of the toppling matrix $\Delta$. We construct scalar functions, linear in height variables of the pile, that are invariant under toppling at any site. These invariants provide convenient coordinates to label the recurrent configurations of the sandpile. For an $L \times L$ square lattice, we show that $g = L$. In this case, we observe that the system has nontrivial symmetries, transcending the obvious symmetries of the square, namely those coming from the action of the cyclotomic Galois group Gal$_L$ of the $2(L+1)$th roots of unity (which operates on the set of eigenvalues of $\Delta$). These eigenvalues are algebraic integers, the product of which is the order $|G|$. With the help of Gal$_L$ we are able to group the eigenvalues into certain subsets the products of which are separately integers, and thus obtain an explicit factorization of $|G|$. We also use Gal$_L$ to define other simpler sets of toppling invariants.
Dhar, D., Ruelle, P., Sen, S., & Verma, D.-N. (1995). Algebraic aspects of Abelian sandpile models. Journal of Physics A: Mathematical and General, 28(4), 805-831. https://doi.org/10.1088/0305-4470/28/4/009 (Original work published 1995)