Let p be a prime and let $\mathbb{Z^*{_p}}$ = $\{1,2,...p-1\}$. Show that $\mathbb{Z^*{_p}}$ is group closed under multiplication.
$\mathbb{Z^*{_p}}$ is associative because $\mathbb{Z}$ is associative under multiplication.
The identity is just 1.
The inverse: let m$ \in \mathbb{Z^*{_p}}$ Need to find $m' \in \mathbb{Z^*{_p}}$ such that $m*m'$ = 1 mod p$
$m*m' = 1 mod_p \iff m*m'+p*r = 1$ , $r\in \mathbb{Z}$
Now for each $m \in \mathbb{Z^*{_p}}$, gcd(m,p) = 1 and I'm supposed to use this somehow. But this is where I need help.