Let $X = \{ x_{1}, x_{2}, \cdots, x_{n}\}$ be a set of elements of the free abelian group $A_{n}$. Let $M$ be the $(n\times n)$-matrix of coordinates of elements $x_{i}$ in terms of the basis $B=\{b_{1},b_{2},\cdots, b_{n}\}$ (where $x_{i}=r_{i1}b_{1}+r_{i2}b_{2}+\cdots + r_{in}b_{n}$, and the coordinates $r_{ij}$ define the matrix $M=(r_{ij})$)
Assume $M^{\prime}$ is a matrix obtained from $M$ by a sequence of elementary transformations.
I need to prove that $M^{\prime}=ZMY$, where $Z$, $Y$ are some matrices in $GL(n, \mathbb{Z})$.
I know of a similar result from linear algebra that says that if a matrix is obtained as a result of an elementary transformation, then it is equal to the original matrix multiplied by a corresponding elementary matrix. But here, we're talking about a sequence of transformations, as in multiple transformations, and we only have two matrices in $GL$ that we're multiplying the original one by, which may or may not be elementary.
I don't know how, therefore, to even approach this. Can someone please help me out (and be willing to answer follow-up questions and be very, very patient?)?
Thank you.