1

To solve this question, I tried to prove the contraposition of the above statement is true, and then the original statement is also true. Here is my solution.

Original statement: For all p in Z, if {if p divides ab, p divides a or p divides b}, then p is prime.

Contrapositive: If p is not prime, then there exists p in Z such that {p divides ab, but p doesn't divide both a and b}

For example, when p=12(composite), ab=24, a =6 and b=4, 12 divides 24, but 12 doesn't divide both 6 and 4.

Therefore, this contraposition is true, and the original statement is also true. QED

What I am concerned about my solution is the first part. I don't actually know whether I can interpret the question like as my original statement since there are two "if~, then~" types of propositions.

There are probably other mistakes.

Please check whether this solution is correct, and if you don't mind, please show me some hints or alternative solutions.

Additional information; I am first-year student of math, so I only know this is related to Euclid's lemma, and I cannot understand further difficult theorems and so forth.

Thank you.

Z. A. K.
  • 11,359
  • You should restrict to $p\in\Bbb Z\setminus{-1,0,1}.$ 2) Your contrapositive shouldn't begin with "If p is not prime, then there exists p". 3) An example is useless. You must prove the statement for every integer $p\ne-1,0,1.$ 4) If you choose to prove the contrapositive, you must first explicit the non-primality of $p$, i.e. $p$ is equal to (hence a fortiori divides) the product of two integers $\ne\pm1$, and then check that $p$ doesn't divide $a$ nor $b.$
  • – Anne Bauval Oct 19 '23 at 13:18
  • 2
    Does this answer your question? In an Integral Domain, every prime is an irreducible. Flaw in the Proof? But beware the descrepancy of vocabulary: the usual "prime" numbers are called here "irreducible" elements, and what is called here "prime" is your other property. – Anne Bauval Oct 19 '23 at 13:26
  • Anne Bauval; Firstly for (1), this is actually a question from my assignment, and it says p is integer and bigger than 1. Secondly, for (2)and (3), why is it "for every" integer p? – Yuta Araki Oct 19 '23 at 13:30
  • 1): in your title you mensionned $p>1,$ but in your body ("Original statement") you only wrote $p\in\Bbb Z$. 2) and 3): You are asked to prove that $A(p)\implies B(p)$ (or equivalently $\neg B(p)\implies\neg A(p)$) for every integer $p>1.$ – Anne Bauval Oct 19 '23 at 13:33
  • The source that you posted is definitely beyond my level, and I cannot understand what it says. If it is possible, please show me something that is provable by first year student, – Yuta Araki Oct 19 '23 at 13:35
  • 1): this is my fault, Thanks for correction. 2): I am understanding that negation of "if a is true, then b is true" is "a is true, and there exist b such that b is not true". Is this right? – Yuta Araki Oct 19 '23 at 13:40
  • "there exists b" may not make sense. "If I fall into the pool, then I get wet." You would negate it as "I fall into the pool, and there is a "I get wet" such that I don't get wet". The negation of "If a is true, then b is true" is "a is true and b is false." Exactly how to phrase "b is false" depends on what b says. If b is of the form "for all x blah", then the negation would be "there exists an x for which not(blah)". But if b is of the form "there is an x such that blah", then the negation would be "for all x, not(blah)". Etc. – Arturo Magidin Oct 19 '23 at 15:29