Claim: $a,b,c \in \mathbb{Z}, $ with $c$ prime. If $c \mid ab$ then $c \mid a$ or $c \mid b.$
My Proposed Proof (Contrapositive): Suppose $c\nmid a, c\nmid b$. So, $a = cd + r$ and $b = ce + q$, with $d,e,q, r \in \mathbb{Z}$. Note $q, r \ne 0 \ne c.$ Next, $ab = c^2ed + cdq + cer + qr = c(ced + dq + er) + qr.$ Since $c$ is prime $qr \ne c$. Therefore $c\nmid ab$.
I am in an intro to proofs class, I just want to know if this proof is valid.
Equivalently transform the statement into: $$p\mid ab\ \mbox{and}\ p\nmid a\ \mbox{then}\ p\mid b.$$ Because then you have $ab=pm$ for some integer $m$ and $p,a$ would be coprime which implies that $p\lambda+a\mu=1$ for another integers $\lambda,\mu$.
– janmarqz Mar 01 '23 at 01:36solution-verification
question to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be an open-ended proof checking machine. – Bill Dubuque Mar 01 '23 at 02:26