3

Let $p$ be a prime and let $\Bbb Z(p)$ be the ring of integers mod $p$. Define a function $f:\Bbb Z(p)\to \Bbb Z(p)$ by $$f(a)=\begin{cases}0, &a=0\\ a^{-1},&a \ne0\end{cases}$$ Find all primes $p$ for which $f$ is a ring isomorphism.

I have checked that $f$ is a homomorphism, and it is surjective obvious. But I don't know how to find $p$ to make it injective.

1 Answers1

4

This only occurs for $p = 2, 3$. If $p > 2$, then for $a \neq 0$, $2(a^{-1}) = 2f(a) = f(2a) = (a+a)^{-1} = (2a)^{-1}$, so $4a = a$, i.e. $3a = 0$ for all $a \neq 0$, so the characteristic must divide $3$.

One can also check that for $p = 2, 3$, $f = \text{id}$.

zcn
  • 15,640