Equivalence Proofs

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

If n is a positive integer, then n is odd if and only if n2 is odd

Proof

Let n be a positive integer. We prove the following two parts;

  1. If n is odd, then n2 is odd
  2. If n2 is odd, then n is odd
    Proof of 1: This follows from Theorem 4.2
    Proof of 2: We proceed by contraposition, i.e. assuming that n is even, we want to show that then n2 is even. Since n is even, we have n=2 for some integer . Hence
n2=(2)2=42=2(22)

Hence, by definition of 'even', n2 is even. This proves part 2.
Together, parts 1 and 2 prove the Leeds University/Computer Science/Compulsory Modules/Fundamental Math Concepts/Proof Techniques/Definitions/Theorem