What is the easiest way to find multiplicative inverse of $\mathbb{Z}_5$ field
$\mathbb{Z}_5=\{0,1,2,3,4\}$
To show that this is a field, I have to show that for all $z\in\mathbb{Z}_5$, they all have multiplicative inverses and additive inverses.
I know how to obtain them, but I'm looking for a pattern.
For example, for additive inverses
\begin{array}{|c|c|c|c|} \hline of& 0 & 1 & 2 & 3 & 4 \\ \hline is& 0& 4& 3 & 2 & 1\\ \hline \end{array}
The additive inverse of $0$ is $0$, inv of $1$ is $4$. There's a pattern, start with zero, then put the largest number, then go downwards until 1
But for multiplicative inverses the pattern is odd.
\begin{array}{|c|c|c|c|} \hline of& 0 & 1 & 2 & 3 & 4 \\ \hline is& none& 1& 3 & 2 & 4\\ \hline \end{array}
I don't really see a pattern, and I want to know if there is one. My question asks me to find if $\mathbb{Z}_{11}$ is a field (it is), but I have to find all the multiplcative inverses and this is tiring without a pattern.
Let $k \in \Bbb Z_p \setminus \{0\}$ with $p$ prime. We know that $k^p=k$ from Fermat's little theorem. Multiply both sides by $k^{-2}$ to get $k^{p-2}=k^{-1}$.