GIVEN: “Let a and b be integers” TO PROVE: “If ab is odd, then a is odd and b is odd.” (Hypothesis) Which is the same as: “ab is odd => a is odd and b is odd” CONSTRUCTION: 1. The contrapositive of that last statement is: ~(“a is odd and b is odd”) => ~(“ab is odd”) i.e. ~( (“a is odd”) and (“b is odd”) ) => ~(“ab is odd”) 2. Now use DeMorgan's law on that last statement: ~(“a is odd”) or ~(“b is odd”) => ~(“ab is odd”) Which now becomes: “a is even” or “b is even” => “ab is even” So if we can prove that statement is truewe can prove the original (hypothesis) statement. PROOF: Let a be an even number 2i, and b be odd or even. ab = 2ib which is even. Similarly, ab will be evn if b is even whether a is odd or even. So ab is always even. QED |
I mean loosely he is correct at least one of the operands has to be odd for it to be an odd number, but technically both not one of the operands have to be odd. |
so you can't find a counterexample if you choose an odd number at least one of it's operands will be odd. but to go further and more accurately both operands have to be odd and none can be even. |
so you can't find a counterexample if you choose an odd number at least one of it's operands will be odd. but to go further and more accurately both operands have to be odd and none can be even. |
I mean loosely he is correct at least one of the operands has to be odd for it to be an odd number, but technically both not one of the operands have to be odd. |
GIVEN: “Let a and b be integers” TO PROVE: “If ab is odd, then a is odd and b is odd.” (Hypothesis) Which is the same as: “ab is odd => a is odd and b is odd” CONSTRUCTION: 1. The contrapositive of that last statement is: ~(“a is odd and b is odd”) => ~(“ab is odd”) i.e. ~( (“a is odd”) and (“b is odd”) ) => ~(“ab is odd”) 2. Now use DeMorgan's law on that last statement: ~(“a is odd”) or ~(“b is odd”) => ~(“ab is odd”) Which now becomes: “a is even” or “b is even” => “ab is even” So if we can prove that statement is truewe can prove the original (hypothesis) statement. PROOF: Let a be an even number 2i, and b be odd or even. ab = 2ib which is even. Similarly, ab will be evn if b is even whether a is odd or even. So ab is always even. QED |
thanks againtry |
have you read the book? |
but in this case “If ab is odd, then a is odd or b is even (Hypothesis) not a and b is odd. |
In fact both the author and I prove that the statement is false |
To justify this claim, consider the contrapositive (to the above statement ), "If a is even and b is odd, then ab is even." so, suppose a = 2i, for some integer i. then ab = (2i)b = 2(ib); hence, ab is even. |
But the statement is true. The author proves as much: |
I have no idea what on earth you're talking about. |
Please point to the proof (yours and/or the author's) that odd(AB) => odd(A) || even(B) is false. |
|
|
a b ab even even even contradiction because a is even, and ab is required to be odd odd even even contradiction because ab is required to be odd even odd even contradiction because a is even, and ab is required to be odd odd odd odd contradiction because b is odd |