An integer $k$ is a generator of the group $\mathbb{Z_n}$ if and only if $\gcd(k, n)=1$.
So $\langle k\rangle=\mathbb{Z_n}$ iff $\gcd(k,n) = 1$.
Is there any general way to prove this?
I see that it's so obvious but can't find a general way to prove it.
\gcd(k, n) = 1
– amWhy Sep 11 '20 at 16:27\operatorname{lcd}
– amWhy Sep 11 '20 at 16:31\rm
for\operatorname
. – Sep 11 '20 at 17:29