
Homework 2
CS 220: Discrete Mathematics
Instructor: Dr. Arun Ross
Due Date: October 5, 2006
Total Points: 55
Note: You are permitted to discuss the following questions with others in the class.
However, you must write up your own solutions to these questions. Any indication to the
contrary will be considered an act of academic dishonesty.
1. [20 points] Use predicate logic to establish the validity of the following wff arguments. Justify
each step by stating the inference rule that was used.
(a) (∀x)P(x)→(∀x)[P(x)∨Q(x)].
(b) (∀x)[P(x)→Q(x)] ∧(∃x)P(x)→(∃x)Q(x).
(c) (∀x)[A(x)→B(x)] →[(∃x)A(x)→(∃x)B(x)].
(d) (∃x)[P(x)→Q(x)] ∧(∀y)[Q(y)→R(y)] ∧(∀x)P(x)→(∃x)R(x).
2. [10 points] Using the predicate symbols shown and appropriate quantifiers, write each En-
glish language statement as a predicate wff. (The domain is the whole world.)
B(x)≡xis a bee; F(x)≡xis a flower; L(x, y)≡xloves y.
(a) Every bee hates only flowers.
(b) Only bees love flowers.
(c) Every bee loves only flowers.
(d) No bee loves only flowers.
(e) No bee hates all flowers.
3. [15 points]
(a) Prove by contraposition: if the product of two integers is not divisible by an integer n,
then neither integer is divisible by n.
(b) Prove by exhaustion: if nis an even integer, 4 ≤n≤12, then nis a sum of two prime
numbers.
(c) Prove by contradiction: the sum of two even integers is even.