Need help.
1) Use a proof by contraposition to show that if m and n are integers such that m + n is odd, then m is odd or n is odd.
Idk how to do it but this is what i think.
Proof by Contraposition
- Suppose m and n are two even integers.
- there exists integers s and t such that m = 2a and n = 2b
- adding we obtain, a+b = 2a+2b= 2(a+b)
- since this represents m+n as 2 times integer a+b, we can conclude that m+n is even
Is that how i Do this question? If not can someone tell me my mistakes and help me solve it.
Thank You.
You should read about the contrapositive. You can think about it as a form of writing a logical statement.
Normally, we write
if P then Q(this is a positive statement).The contrapositive is
if (NOT P) then (NOT Q). Exercise: determine that it is equivalent to the positive.In your case, the positive statement is:
if (m + n is odd) then (m is odd or n is odd).The contrapositive statement is:
if NOT (m is odd or n is odd) then NOT (m+n is odd).Using DeMorgan's Laws, you can simplify this:
if ((NOT m is odd) and (NOT n is odd)) then NOT (m+n is odd).Which simplifies to:
if (m is even and n is even) then (m+n is even).(You may want to take a moment to convince yourself that this is logically equivalent to your original proposition.)
Anyway, we now have
if (m is even and n is even) then (m+n is even).This statement is easy to prove. If $m$ is even, then $m = 2p$ for some integer $p$ and if $n$ is even, then $n = 2q$ for some integer $q$. Then $m+n = 2p + 2q = 2(p+q)$. And since $2(p+q)$ is clearly divisible by $2$, it is even.
Since you proved the contrapositive, the original proposition (its logical equivalent) is also proven. We're done!