Example (identifying abelian group given relations)

Suppose $G$ is an abelian group generated by $a,b,c\in G$ with relations $$ \begin{align*} 2a + 3b + c = 0, \quad a+2b = 0, \quad 5a+6b + 7c = 0. \end{align*} $$ Then we have a surjection of abelian groups $$ \begin{align*} γ: \qquad \Z^3 &\to G \\ (1,0,0) &\mapsto a, \\ (0,1,0) &\mapsto b, \\ (0,0,1) &\mapsto c, \end{align*} $$ with kernel $$ \begin{align*} \ker(γ) = \langle (2,3,1), (1,2,0), (5,6,7)\rangle. \end{align*} $$

Consider the associated matrix $$ \begin{align*} A = \pmat{2 & 1 & 5 \\ 3&2&6 \\ 1&0&7}. \end{align*} $$ Then the homomorphism $A: \Z^3 \to \Z^3$ has $G \isom \Z^3/\ker(γ) \isom \Z^3/\im(γ)$.

Now find the Smith normal form of $A$. We can perform the algorithm: $$ \begin{align*} \pmat{2&1&5 \\ 3&2&6 \\ 1&0&7} &\longrightarrow \pmat{1&2&5 \\ 2&3&6 \\ 0&1&7} \\ &\longrightarrow \pmat{1 & 0 & 0 \\ 2 & -1 & -4 \\ 0 & 1 & 7} \\ &\longrightarrow \pmat{1 & 0 & 0 \\ 0 & -1 & -4 \\ 0 & 1 & 7} \\ &\longrightarrow \pmat{1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 1 & 3} \\ &\longrightarrow \pmat{1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 3} \\ \end{align*} $$ or often it's easier to compute the Fitting ideals $$ \begin{align*} \mathrm{Fit}_1(A) ={}& (2, 1, 5, 3, 2, 6, 1, 0, 7) \\ ={}& (1) \\ \mathrm{Fit}_2(A) ={}& \left(\begin{vmatrix}2&1\\3&2\end{vmatrix}, \begin{vmatrix}2&5\\3&6\end{vmatrix}, \begin{vmatrix}1&5\\2&6\end{vmatrix}, \begin{vmatrix}2&1\\1&0\end{vmatrix}, \begin{vmatrix}2&5\\1&7\end{vmatrix}, \begin{vmatrix}1&5\\0&7\end{vmatrix}, \begin{vmatrix}3&2\\1&0\end{vmatrix}, \begin{vmatrix}3&6\\1&7\end{vmatrix}, \begin{vmatrix}2&6\\0&7\end{vmatrix}\right) \\ ={}& (1) \\ \mathrm{Fit}_3(A) ={}& \left(\begin{vmatrix}2&1&5 \\ 3&2&6 \\ 1&0&7\end{vmatrix}\right) = (3). \end{align*} $$

Therefore $$ \begin{align*} G \isom \Z/(1) \oplus \Z/(1) \oplus \Z/(3) \isom \Z/3\Z. \end{align*} $$