

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSCE 235: Introduction to Discrete Structures Homework assignment 3 (87 points) Assigned Wednesday, February 7, 2007 Due Monday, February 12, 2007
Problem 1. (15 points) Prove that for any integer n there does not exist an integer k such that n^2 = 3k + 2. Hint: Use a proof by cases. If any integer is divided by 3, the remainder is either 0, 1, or 2. Therefore every integer can be written as 3k, 3k + 1, or 3k + 2 for some integer k. Consider these three cases separately. For example, if n leaves a remainder of 1 when divided by 3, so that n = 3k + 1 for some k, then what is the remainder when n^2 is divided by 3?
Problem 2. (6 points) Let A = { 1 , 2 }, B = { 1 , 3 }, C = { 3 }, and D = { 1 , 2 , 3 }.
(a) (2 points) Use set builder notation to describe D. (b) (4 points) Which of these sets are subsets of which other of these sets? In other words, list all true statements of the form X ⊆ Y , where X and Y are to be replaced with A, B, C, or D.
Problem 3. (9 points) Determine whether each of these statements is true or false.
(a) 0 ∈ ∅ (b) ∅ ∈ { 0 } (c) { 0 } ⊆ ∅ (d) ∅ ⊆ { 0 } (e) { 0 } ∈ { 0 } (f) { 0 } ⊆ { 0 } (g) {∅} ⊆ {∅} (h) ∅ ∈ {∅} (i) ∅ ⊆ {∅}
Problem 4. (5 points) Let A and B be finite sets. Let m be the cardinality of A and let n be the cardinality of B. Find the cardinality of the following sets.
(a) P (A) (b) P (B) (c) A × B (d) P (A × B) (e) P (A) × P (B)
Page 1
Problem 5. (8 points) Let
A = { 1 , 2 , 3 , 4 , 5 }, B = { x | x is even }, C = { x | x is a multiple of 3 }, and D = { x | x is prime },
where the universal set is the set of all positive integers less than 20. [Note: The number 1 is not prime.]
(a) What is A ∪ C? (b) What is B ∩ C? (c) What is A − D? (d) What is D − A? (e) What is A? (f) What is B ∩ D? (g) What is (B ∩ C) ∩ D? (h) What is (B ∪ D) ∩ A?
Problem 6. (8 points) List the ordered pairs in the relation R from A = { 0 , 1 , 2 , 3 , 4 } to B = { 0 , 1 , 2 , 3 } where (a, b) ∈ R if and only if
(a) a = b. (b) a + b = 4. (c) a > b. (d) a divides b.
Problem 7. (16 points) For each of these relations on the set { 1 , 2 , 3 , 4 }, decide whether it is reflexive, whether it is symmetric, whether it is transitive, and whether it is an equivalence relation.
(a)
(b)
(c)
(d)
Problem 8. (10 points) Which of these relations on Z are equivalence relations? Determine the properties of an equivalence relation that the others lack.
(a)
(x, y)
∣ (^) x > y
(b)
(x, y)
∣ (^) x = y
(c)
(x, y)
∣ (^) |x − y| ≤ 1
(d)
(x, y)
∣ (^) x divides y
(e)
(x, y)
∣ (^) |x| = |y|
Problem 9. (10 points) Find a partition of the positive integers such that no two prime numbers are in the same subset and every subset contains a prime number.
Page 2