Problem 1

Work the following problem, write it up carefully (on a separate sheet of paper from the homework), and turn it in on Monday, January 30:

Problem: Let x and y be integers. Prove that x + y is even iff both x and y are even or both x and y are odd.

Proof: We will use a two-part iff.

    
(=>)
We need to show P => Q or R, where P is "x + y is even,"
Q is "both x and y are even," and R is "both x and y are odd."
The contrapositive is ~(Q or R) => ~P.
This is equivalent to ~Q and ~R => ~P.
Then, ~Q is one of x or y is odd, or they are both even.
Also, ~R is one of x or y is even, or they are both odd.
Thus, ~Q and ~R is one of x or y is even. 
Thus, if x is even and y is odd, let x = 2j and y = 2k + 1, for      some integers j and k.      Then, x + y = 2j + 2k + 1 = 2(j+k) + 1 = 2n + 1, where n = j+k.      Thus, x + y is odd, or ~P.
Similarly, if x is odd and y is even, x + y is odd, or ~P. 
Since the contrapositive of P => Q or R is true, this conditional is true.  1/2 QED
(<=) 
Here, need to show Q or R => P, with Q, R, and P as above in (=>).
Q or R => P
    <=>  ~(Q or R) or P     <=>  (~Q and ~R) or P     <=>  (~Q or P) and (~R or P)     <=>  (Q => P) and (R => P).
To show Q => P, assume x and y are even.     Then x = 2j, and y = 2k, for some integers j and k.     Thus, x + y = 2j + 2k = 2(j+k) = 2m.     Thus, x + y is even.
To show R => P, assume x and y are odd.     Then x = 2j +1, and y = 2k + 1, for some integers j and k.     Thus, x + y = 2j + 1 + 2k + 1 = 2j + 2k + 2 = 2(j+k+1) = 2m.     Thus, x + y is even.
This proves Q or R => P, and thus by a two-part proof, Q or R <=> P, or x + y is even iff both x and y are even or both x and y are odd.   QED


Notes:

Some variations are possible, and it is possible to prove this statement with cases, but we need to be very careful with the different cases.

Some common mathematical errors:

Some common expositional errors: