## A community for students. Sign up today

Here's the question you clicked on:

## PhoenixFire 2 years ago Using the Law of Contrapositive give proof of the theorem: For any integers a,b if ab is odd then either a is odd or b is odd. I tried and got: *give me a second to put it into the first post*

• This Question is Closed
1. PhoenixFire

p -> q contrapositive is ~q -> ~p So I get the statement: if either a is even or b is even then ab is even Definition of even: x is divisible by 2 Using that definition: $\forall a,b \in \mathbb{Z}: {a \over 2} and {b \over 2} \rightarrow {ab \over 2}$ Re-arranging for a and b for some integer k and s: $a=2k$$b=2s$ Re-arrange the conclusion and substitute a and b in $ab=2t$ $(2k)(2s)=2t$$4ks=2t$$2(2ks)=2t$ Proving the theorem.

2. experimentX

both must be odd.

3. PhoenixFire

@experimentX I'm proving the Contrapositive. When you negate the statements it reads "ab is not odd" which is the same as saying "ab is even"

4. experimentX

"if ab is odd then either a is odd or b is odd." => "if ab is odd then both a and b are odd."

5. experimentX

using contrapositive : ~p->~q if ab is even, ab must have AT LEAST one even factor.

6. PhoenixFire

When you negate "a is odd or b is odd" you get "a is even and b is even" p->q contrapositive is ~q->~p p = ab is odd ~p = ab is even q = a is odd or b is odd ~q = a is even and b is even Right?

7. experimentX

i think the assumption on the Q is wrong.. 2x3 (even x odd) =6 (even) 3x3 (odd x odd) = 9 (odd)

8. PhoenixFire

I see what you mean. The original theorem states ab is odd then a or b is odd, however if you plug in a as odd and b as even ab is then even. Which would logically mean that it is an invalid theorem.

9. PhoenixFire

But isn't that why they use different laws such as the Contrapositive? To prove things that don't logically make sense?

10. experimentX

yep i've already forgotten these types of things ... i think this logic is right though q = a is odd or b is odd => ~q = both a and b are not odd => both a and b are even

11. PhoenixFire

yeah, it's kind of confusing. I'm only learning these proofs now and even the basic Direct Proof is doing my head in.

12. experimentX

i hate to read these whole stuff http://en.wikipedia.org/wiki/Proof_by_contrapositive

13. experimentX

i guess you read the Q wrong ... it says proof by contrapositive is 100% valid (never got logical stuff in my brain though)

14. PhoenixFire

Well, thanks anyways @experimentX I'll just stick with how I think it should be and ask my lecturer about it later.

15. experimentX

if you work this way ... from invalid theorem, ... you will reach a valid statement which in not complete.

16. experimentX

yw

#### Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy