Prove: if p is prime and p ∣ ab, then p ∣ a or p ∣ b.

13.6k Views Asked by At

Our teacher went over the following proof but didn't post the notes on it. I'm trying to understand how it checks out, could someone explain it without using contraposition.

For any integers a,b,p, if p is prime and p ∣ ab, then p ∣ a or p ∣ b.

1

There are 1 best solutions below

2
On BEST ANSWER

If $p \mid a$ you are finished, otherwise $\gcd(p,a) = 1 $ and there are $x,y$ such that $px+ay = 1$. Then $pbx+aby = b$ and since $p \mid pbx$ and $p \mid (ab) y$, we see that $p \mid b$.