Smith forms of matrices in Companion Rings, with group theoretic and topological applications | Synapse