Suppose $R$ is a Euclidean domain (not necessarily a field) and let $M$ be a finitely generated $R$-module. Prove $M$ is a cyclic module if and only if it has a single invariant factor.
If $M$ has a only has invariant factor $d_1$, it seems right away that we can use the Structure theorem for finitely generated modules over a PID to get $M \cong R/(d_1)$. Thus $M$ is cyclic.
For the other direction, suppose $M$ is cyclic, i.e. $\exists m \in M$ so that $M = (m) = \{rm : r\in R\}$. We need to show there is only one invariant factor. I don't know how to go about this. Thoughts?