Let $p$ ∈ $\mathbb N$ be a prime number. Show that $\mathbb Z/p\mathbb Z$ contains no zero-divisors except $0$, hence ($\mathbb Z/p\mathbb Z$)$^∗$ = {$1, 2, . . . , p − 1$}, and $\mathbb Z/p\mathbb Z$ is field. Where ($\mathbb Z/p\mathbb Z$)$^∗$ is the set of units.
My attempt:
I showed this by contradiction:
Let $a$ be a zero-divisor in $\mathbb Z/p\mathbb Z$, then there exists $b$ $\not=$ $0$ in $\mathbb Z/p\mathbb Z$ such that $a.b = 0$ mod $p$.
We know that $\mathbb Z/p\mathbb Z$ = {$0,1,2, ... , p-1$}.
Without loss of generality, let $a = 1$, and $b = p-1$. Then $a.b = 1.(p-1) = p-1 = 0$ and hence $p=1$, which contradicts the fact that $p$ is a prime number since $1$ is not prime. And hence $\mathbb Z/p\mathbb Z$ contains no zero-divisors except $0$.
Is my proof correct? Do you have any other suggestions or alternatives? And how do I show the other parts of the problem?
For instance, I know that an element $a$ is said to be a unit if there is $b$ such that $a.b = 1$ and so $b$ is the inverse of $a$.
And a field ($F,0,1,.+$) is a commutative ring where for all $x$ in $F$ {$0$}, there exists $x^{-1}$ such that $x.x^{-1} = 1 = x^{-1}.x$
''Let a be a zero-divisor in Z/pZ, then there exists b ≠ 0 in Z/pZ such that a.b=0 mod p.
We know that Z/pZ = {0,1,2,...,p−1}.
Without loss of generality, let a=1, and b=p−1''
Technically, zero is not considered as a zero divisor in a ring.
How can you assume that $a=1$? It's the unit element of the ring with $b\cdot 1 = b$ for all $b$ and so cannot be a zero-divisor.
Proof:
Suppose $ab=0$ for $b\ne 0$. Then $ab\equiv 0\mod p$ and so $p$ divides the product $ab$. Since $p$ is a prime, it follows that $p$ divides a factor. So $p\mid a$ or $p\mid b$. But $b\ne 0$ and so $p\mid a$, i.e., $a\equiv 0\mod p$, i.e., $a=0$ in ${\Bbb Z}_p$.