0

Let $G=Z_n$. How can I show that the number of generators $G$ is $\varphi(n)$ whereas $\varphi$ is Euler's totient function?

I know That I need to show here a start of a solution but all my edges had diverged.

Parcly Taxel
  • 105,904
J. Doe
  • 189
  • 8

1 Answers1

0

Let $1\le d \le n$, $d$ integer. Suppose $\gcd(d,n)=k>1$, so that you can write $d=kd_0$, $n=kn_0$, with $\gcd(d_0,n_0)=1$. Then ${(x^d)}^{n_0}=(x^{n})^{d_0}=1^{d_0}=1$.

If $k>1$, then $n_0<n$, so $x^d$ is not a generator in this case. This shows that the number of generators is at most $\phi(n)$.

Suppose now that $k=1$. Then there exists a unique integer $1\le r \le n$ such that $d\cdot r \equiv 1 \mod n$. It follows that for every $1\le m \le n$ you have $$ (x^d)^{mr}= (x^{dr})^m =x^m.$$ Therefore in this case $x^d$ is a generator and you conclude that the number of generators is exaclty $\phi(n)$.