ICS141: Discrete Mathematics For Computer Science I
ICS141: Discrete Mathematics For Computer Science I
ICS141: Discrete Mathematics For Computer Science I
ICS141:
Discrete Mathematics for
Computer Science I
Dept. Information & Computer Sci., University of Hawaii
Jan Stelovsky
based on slides by Dr. Baek and Dr. Still
Originals by Dr. M. P. Frank and Dr. J.L. Gross
Provided by McGraw-Hill
Lecture 7
Chapter 1. The Foundations
1.6 Introduction to Proofs
Chapter 2. Basic Structures
2.1 Sets
n Lemma
n A minor theorem used as a stepping-stone
Proof by Contraposition
n Theorem: (For all integers n)
If 3n + 2 is odd, then n is odd.
n Proof:
(Contrapositive: If n is even, then 3n + 2 is even)
Suppose that the conclusion is false, i.e., that n is even.
Then n = 2k for some integer k.
Then 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1).
Thus 3n + 2 is even, because it equals 2j for an integer
j = 3k + 1. So 3n + 2 is not odd.
We have shown that ¬(n is odd) → ¬(3n + 2 is odd),
thus its contrapositive (3n + 2 is odd) → (n is odd) is
also true. ■
ICS 141: Discrete Mathematics I – Fall 2011 7-8
Vacuous Proof Example
University of Hawaii
n Definition:
The real number r is rational if there exist
integers p and q with q ≠ 0 such that r = p/q.
A real number that is not rational is called
irrational.
Chapter 2
Basic Structures:
Sets, Functions, Sequences, and Sums
{a, a, b, a, b, c, c, c, c}.
n This set contains (at most) 2 elements!