Prove that if $ab \equiv 0 \pmod p$, where p is a prime number, then $a \equiv 0 \pmod p$ or $b \equiv 0 \pmod p$.
All I have right now is that the prime divisibility property may help with the then part of this problem.
Prove that if $ab \equiv 0 \pmod p$, where p is a prime number, then $a \equiv 0 \pmod p$ or $b \equiv 0 \pmod p$.
All I have right now is that the prime divisibility property may help with the then part of this problem.
The ideal $(p) \subset \mathbb Z$ is prime, thus if $ab \in (p)$, then $a \in (p)$ or $b \in (p)$.
In other words:
$ab \equiv 0 \pmod p \implies ab=pk \implies p|a$ or $p|b \implies a \equiv 0 \pmod p$ or $b \equiv 0 \pmod p$.
Remember that in the integers, for a prime $\;p\;\;,\;\;\;p|a\iff a\equiv kp\;,\;\;a,k\in\Bbb Z\;$ , and then $\;a\equiv0\pmod p\iff p|a\iff a\equiv kp\;$ , so by what you wrote in your second comment below your question:
$$ab\equiv 0\pmod p\iff p|ab\iff p|a\;\;\text{or}\;\;p|b\iff $$
$$a\equiv kp\;\;\text{or}\;\;b\equiv mp\;,\;\;k,m\in\Bbb Z\iff a\equiv 0\pmod p\;\;\text{or}\;\;b\equiv 0\pmod p$$