I am aware of some theorem that says that if $M$ is non singular, $\det(M) \neq 0$, then: $$\mathrm{card}(\mathbb{Z}^n/M \mathbb{Z}^n)= |\det(M)|.$$ How does one prove this? Figured if I put in the context of the rational canonical form, this would help, but cant piece it together. Thanks.
This result is mentioned in the first answer of this question: Cardinality of a Quotient Ring.