Docsity

CS 220 Discrete Mathematics Homework 2, Assignments of Discrete Mathematics

Toggle sidebar
bg1
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.
pf2

Partial preview of the text

Download CS 220 Discrete Mathematics Homework 2 and more Assignments Discrete Mathematics in PDF only on Docsity!

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) ≡ x is a bee; F (x) ≡ x is a flower; L(x, y) ≡ x loves 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 n is an even integer, 4 ≤ n ≤ 12, then n is a sum of two prime numbers. (c) Prove by contradiction: the sum of two even integers is even.
  1. [10 points] Use the first principle of induction to prove the following: 2 + 4 + 6 +... + 2n = n(n + 1).

Note: The following bonus question carries 5 points. You are not permitted to discuss this question with anyone else.

  1. [5 points] For any two numbers x and y, prove that | xy | = | x || y |. Note that by definition,

| x |=

x, if x ≥ 0; −x, if x < 0.