It is clearly the case that the map $f:\mathbb{Z} \rightarrow n\mathbb{Z}$ defined as $f(x) = nx$ is a group isomorphism.
But if that is the case, we also have $\mathbb{Z}/n\mathbb{Z}$ isomorphic to $\mathbb{Z}/\mathbb{Z}$ isomorphic to $\{0\}$, but this is wrong because we know $\mathbb{Z}/n\mathbb{Z}$ is isomorphic to the cyclic group $\mathbb{Z}_n$. What did I do wrong?