Proof by Contraposition

In a proof by contraposition, a statement of the form pq is proved by showing ¬q¬p. This is correct, because the statements are logically equivalent


Leeds University/Computer Science/Compulsory Modules/Fundamental Math Concepts/Proof Techniques/Definitions/Theorem 4.3

If n is an integer and 3n+2 is odd, then n is odd.

Proof

Let n be an arbitrary integer. We proceed by contraposition.
The first step in a proof by contraposition is to assume that the conclusion of the conditional statement If 3n+2 is odd, then n is odd is false, namely assume that n is even.
Our goal is to how that the premise is false as well, i.e. we want to show that 3n+2 is even. Since n is even, by definition of an even integer, n=2k for some integer k.
Substituting 2k for n, we find that

3n+2=3(2k)+2=6k+2=2(3k+1)

Hence 3n+2 is even, because 3n+2=2 for some integer , namely for =(3k+1). Thus we have reached our goal and the proof is complete.
Note: Instead of proving pq, we proved ¬q¬p.
The proof of ¬q¬p is a direct proof