Consider the group $G = (\mathbb{Z}/m \mathbb{Z}, +)$. The statement I want to prove is that the cyclic subgroup generated by $[a]_m \in \mathbb{Z}/m \mathbb{Z}$ is $\mathbb{Z}/m \mathbb{Z}$ if and only if $\gcd(a,m) = 1$.
I first worked out a few examples and verified it seemed to hold, but am struggling to get any intuition as to why, or how to start the proof. I know that $\gcd(a, m) = 1 \Leftrightarrow$ $[a]_m$ is invertible, but since we are in a group $G$ with operation $+$, everything is invertible regardless of its $\gcd$.