[Math] $\mathbb Z_p^*$ is a group.

abstract-algebragroup-theorymodular arithmetic

I'm trying to prove that $\mathbb Z_p^*$ ($p$ prime) is a group using the Fermat's little theorem to show that every element is invertible.

Thus using the Fermat's little theorem, for each $a\in Z_p^*$, we have $a^{p-1}\equiv1$ (mod p). The problem is to prove that p-1 is the least positive integer which $a^{p-1}\equiv1$ (mod p).

Remark: $\mathbb Z_p^*$ is $\{\overline 1,…,\overline {p-1}\}$ with multiplication.

I need help.

Thanks a lot.

Best Answer

You can't show that $p-1$ is the least positive integer $r$ such that $a^r\equiv 1\pmod{p}$, because in general it isn't: for instance, the least integer for $a=1$ is $1$.

But all you need is to find an element which acts as an inverse:

$$a\cdot a^{p-2} \equiv 1 \pmod{p}$$

so that, for any $\overline{x}\in\mathbb{Z}^*_p$ you have

$$\overline{x}\cdot\overline{x}^{\,p-2} = \overline{1}$$

and so

$$\overline{x}^{\,-1}=\overline{x}^{\,p-2}$$

Related Question