Skip to main content

SOLUTIONS MANUAL for Discrete Mathematics with Ducks 2nd Edition by Sarah Marie Belcastro

Page 1

SOLUTIONS MANUAL Discrete Mathematics with Ducks 2nd Edition by Sarah Marie Belcastro Chapter 1

Counting and Proofs 1.2 Try This! Let’s Count 1. 2 + 6 + 1 + 1 = 10. 2. 3 · 5 = 15. 3. Six as there are five different ice-cream containers. 4. 5 · 5 · 5 = 125 orders because one might want all flavors the same. 5. This one is a pain, intentionally. First, 51 + 2 52 + 53 = 5+ 20+ 10 = 35 (the 2 52 is because it matters which flavor is ordered with 1 quart and which is ordered with 2 quarts), then just 5 4 4 4 4 = 10, then + + = 4 + 6 + 4 = 14 and = 4. Of course, students do not yet 3 1 2 3 3 know this notation, so they will likely write out solutions exhaustively and at length. 6. 3 + 2 + 1 = 6. 7. Three, as there are only two colors. To assure 7 monochromatic armbands, 13 armbands must be drawn (worst case: b-g-b-g-b-g-b-g-b-g-b-g-b/g). 8. 5 · 3 · 6 = 90. 9.

(a) n − 1.

(b) n − 1, then n − 2. (c) n − i.

(d) (n − 1) + (n − 2) + . . . 1 = n(n − 1)/2. 10.

(a) 3 · k.

(b) k + 1 as there are k containers. 11.

(a) The sum of their sizes. (b) The sum of their sizes! (c) Yes, the WEBS problem and the Frisbee tournament problems. (d) m + m + · · · + m = n · m.

12. m · k; yes, related to the ice-cream and snack-box problems. 2


1.9. Problems That Use Counting or Proofs

3

1.9 Problems That Use Counting or Proofs 1. 4 · 7 = 28. 2. 28 · 3 · 2 = 168. 3. An even number n can be written as 2k for some integer k. So, the sum of two even numbers is n1 + n2 = 2k1 + 2k2 = 2(k1 + k2 ) = 2k3 , which is even. 4. An odd number n can be written as 2k + 1 for some integer k. So, the sum of two odd numbers is n1 + n2 = 2k1 + 1 + 2k2 + 1 = 2k1 + 2k2 + 2 = 2(k1 + k2 + 1) = 2k3 , which is even. 5. 28 by the product principle using slots. 6. 5 · 4 + 3 · 3 = 29. 7. A binary number n that ends in 0 is the sum of some powers of 2, e.g., n = 2a + 2b + · · · + 2c where the lowest possible power of 2 is 21 = 2. Then we may write n = 2(2a−1 + 2b−1 + · · · + 2c−1 ) and so n is even. 8. An odd number n can be written as 2k + 1 for some integer k. To write n as a binary number, we must write it as a sum of powers of 2. This sum must have lowest power 0 (as in 20 ) or else every term of the sum will be divisible by 2. That means that the binary representation will end in a 1 = 20 . 9. There are 11 · 3 · 5 · k = 165k choices and 1,095 days, so k ≥ 6.63. But, of course, k must be an integer . . . so there are at least seven possible drinks. 10. Two consecutive perfect squares are n2 and (n + 1)2 . n2 − (n + 1)2 = n2 − n2 − 2n − 1 = −2n − 1 = −2n + 1 − 2 = 2(−n − 1) + 1, which is odd. 11. 11 = 10 + 1; and, 3 because there are only two different first digits (1, 2). 12. Counterexample: 32 + 42 = 25 is odd. 13. 15 · 8 = 120. 14. 15 · 6 = 90. 15. 5 + 6 + 3 + 4 = 18. 16. Nope. 2 + 3 = 5 is odd. (However, if we exclude 2, then the remaining primes are odd and so the sum of any two of them will be even.) 17. There are 1,440 minutes per day and so (1,440) · 23 = 960 90-second intervals. 1,042 > 960 so two flights must take off within the same interval. 18. Write n = 2k for some integer k. Then (−1)n = (−1)2k = ((−1)2 )k = 1k = 1. 19. 107 .


4

1. Counting and Proofs

20. 94 = 6561. 21. An odd number 2k + 1 times an odd number 2r + 1 is (2r + 1)(2k + 1) = 4kr + 2k + 2r + 1 = 2(2kr + k + r) + 1 and thus is odd. 22.

(a) Check 2,000,000 versus 220 = 1, 048, 576: not enough subsets. (b) By trial and error, see that 2,100,000 > 221 = 2,097,152 but 2,200,000 < 222 = 4,194,304.

23. For even n = 2k, 3(2k)3 + (2k) + 5 = 2(3 · 4k3 ) + 2k + 2 · 2 + 1 = 2(3 · 4k3 + k + 2) + 1, which is odd. For odd n = 2k + 1, 3(2k + 1)3 + (2k + 1) + 5 = odd + odd + odd = odd. 24. 99 · 2 + 1 = 199; 99 · 3 + 1 = 298; 99 · k + 1. 25. Green and brown socks: three for the first pair, then another two for the next pair, and so forth and so on, so 50 · 2 + 1 = 101.

Three colors of socks: four for the first pair, then another two for the second pair (using the leftover two socks), and so forth and so on: 50 · 2 + 2 = 102.

k colors of socks: k + 1 for the first pair, then another two for the second pair (using the leftover k − 1 socks), and so forth and so on: 50 · 2 + k − 1 = 99 + k.

26. All the usual primes are still prime, and 1 is also prime. If 1 were prime, we would no longer have unique factorization of natural numbers—for example, 6 = 2 · 3 = 2 · 1 · 1 · 1 · 3 = 1 · 2 · 3 . . . . 27. There are no prime numbers with this definition, because 1 is a positive divisor of every integer, and 1 is not included in this definition! It would be silly to have a class of numbers with no members. 28. There are 3 · 2 = 6 regular options plus 2 · 1 Fancy Tips, so 6 + 2 = 8. 29. By the pigeonhole principle, if each bin had only 13 skeins then you’d only have 104 miniskeins. 30.

(a) Note that the numbers 1–6, paired with the numbers 12–7, form six sums of 13. If no pair of the 7 numbers sums to 13, then all the numbers must be in one of these two subsets—but that’s only 6 numbers, so the seventh number must come from the other set and pair to make a sum of 13. (b) Similarly, the numbers 12–7, paired with the numbers 6–1, form differences of 6. The same argument applies. (c) Now we look at the numbers 1–3 with 4–6, and 7–9 with 10–12 to get six pairs with differences of 3. The same argument as above applies.

31. We have 7 numbers in the range 1–20. There are 27 = 128 possible subsets, and the highest possible sum is 14 + 15 + 16 + 17 + 18 + 19 + 20 = 119. So there are at most 119 different subset sums, and more subsets than that—thus, by the pigeonhole principle, there are two subsets that have the same sum.


1.9. Problems That Use Counting or Proofs

5

32. We can subdivide the square mile into four half-mile squares. By the pigeonhole principle, we know that two of the five Dunkin Donutses must be in the same half-mile square. The furthest these could be apart is the diagonal of the square, or √12 ≈ .71 < .75 miles apart. However, we could have four Dunkin Donutses at the corners of our square mile, and one in the center, and no two of these would be within half a mile of each other. 33. Well, only one at a time, but there are 2 + 2 · 6 + 2 + 1 + 3 = 20 shelves on which it might be found. And yes, the author does own this book. 34. 12 times 2 is 24. 35. If a(ab + 1) is odd, then both a and ab + 1 must be odd. Therefore a is odd, so a = 2k + 1. Now (2k + 1)b + 1 = 2kb + b + 1 is odd, which means that b + 1 is odd (because 2kb is even) and therefore b is even.


Chapter 2

Sets and Logic 2.4 Try This! Problems on Sets and Logic 1. 4; {0, / {0}, {cat}, {{dog}}, {{2.1, 6}}, {0, cat}, {0, {dog}}, {0, {2.1, 6}}, {cat, {dog}}, {cat, {2.1, 6}}, {{dog}, {2.1, 6}}, {0, cat, {dog}}, {0, cat, {2.1, 6}}, {0, {dog}, {2.1, 6}}, {cat, {dog}, {2.1, 6}}, {0, cat, {dog}, {2.1, 6}}}. (24 = 16.) 2. First logic-language it. For all times t, and for all people p, p can be fooled at time t. (There are certainly other possible interpretations.) The negation will be, There exists a time t and a person p such that p cannot be fooled at time t. 3. For example, −16, 8, 12, . . . . These are the even integers. 4.

(a) A ∪ B = A ∩ B; A ∩ B = A ∪ B.

(b)

P T T F F

Q T F T F

P∨Q T T T F

¬(P ∨ Q) F F F T

P T T F F

Q T F T F

¬P F F T T

¬Q F T F T

(¬P) ∧ (¬Q) F F F T

P T T F F

Q T F T F

P∧Q T F F F

¬(P ∧ Q) F T T T

P T T F F

Q T F T F

¬P F F T T

¬Q F T F T

(¬P) ∨ (¬Q) F T T T

(c)

6


2.6. Try This! A Tricky Conundrum

7

(d) Let x ∈ A ∪ B. Then x 6∈ (A ∪ B), so x 6∈ A and x 6∈ B, so x ∈ A ∩ B. Similarly, let x ∈ A ∩ B. Then x 6∈ A and x 6∈ B, so x 6∈ (A ∪ B). Therefore, x ∈ A ∪ B. Now let x ∈ A ∩ B. Then x 6∈ (A ∩ B), so x 6∈ A or x 6∈ B, so x ∈ A ∪ B. Similarly let x ∈ A ∪ B. Then x 6∈ A or x 6∈ B, so x 6∈ (A ∩ B). Therefore x ∈ A ∩ B. (e) Sure.

n [

Ai =

i=1

n \

Ai and

i=1

n \

Ai =

i=1

n [

Ai .

i=1

(f) Yes; ¬(P1 ∨ · · · ∨ Pn ) is logically equivalent to ¬P1 ∧ · · · ∧ ¬Pn , and ¬(P1 ∧ · · · ∧ Pn ) is logically equivalent to ¬P1 ∨ · · · ∨ ¬Pn. 5.

(a) {−10, −9, −8, −7, −6, −4, −2, 0, 2, 4, 6, 7, 8, 9, 10}.

(b) {−10, −9, −8, −7, 7, 8, 9, 10}. (c) A.

6. Check by truth table to see that the answer is “yes”:

7.

P⇒Q T F T T

P T T F F

Q T F T F

n [

Ai = An ;

i=1

n \

i=0

¬(P ⇒ Q) F T F F

P T T F F

Q T F T F

¬Q F T F T

P ∧ ¬Q F T F F

Ai = {0}.

8.

9. No; n + 5 has a different value for each n, so such an m cannot have a single value.

2.6 Try This! A Tricky Conundrum 1. Solutions will vary. 2. NA. 3.

(a) Let learn about sets be S, let learn about logic be L, and let go on to the next chapter be C. (b) C ⇒ (S ∨ L).

(c) ¬S ∧ ¬C; (C ⇒ (S ∨ L)) ∧ (¬S ∧ ¬C) ⇒ ¬L.


8

2. Sets and Logic

(d)

C

S

L

S∨L

C ⇒ (S ∨ L)

¬S ∧ ¬C

T T T T F F F F

T T F F T T F F

T F T F T F T F

T T T F T T T F

T T T F T T T T

F F F F F F T T

(C ⇒ (S ∨ L))∧ (¬S ∧ ¬C) F F F F F F T T

(C ⇒ (S ∨ L))∧ (¬S ∧ ¬C) ⇒ ¬L T T T T T T F T

4. Solutions will vary. 5.

(a) Use the contrapositive. If n is odd, then n = 2k + 1 and n3 + 6n2 − 2n = (2k + 1)3 + 6(2k + 1)2 − 2(2k + 1) = 2(4k3 + 6k2 + 3k + 3(2k + 1)2 − (2k + 1)) + 1, which is odd.

(b) Use the contrapositive. Suppose x < 0. Then x5 + 7x3 + 5x < 0 and x4 + x2 + 8 > 0, so x4 + x2 + 8 > x5 + 7x3 + 5x.

(c) Suppose for the sake of contradiction that it can be tiled with dominoes. Then it has an even number of squares. However, 65 is odd; contradiction. (d) Tile the right-most column with n−1 2 vertical dominoes. Then tile the left-most n − 1 columns of horizontal dominoes. columns with n−1 2

2.9 Bonus: Truth Tellers Puzzle1: The simplest way to do this problem is by reasoning. Examine the three cases where Rachel, Tess, or Nicol is the liar. If Rachel is the liar, Tess and Nicol are truthful. However, Nicol and Tess contradict each other because Tess claims ze was out of town whereas Nicol says zesaw Tess in town. Thus, Rachel is not the liar. If Tess is the liar, Rachel and Nicol are truthful. Rachel’s and Nicol’s statements are not really related, so this situation is consistent. If Nicol is the liar, then Rachel and Tess are truthful. However, Rachel and Tess contradict each other because Rachel says Tess knows Amy whereas Tess says ze doesn’t know Amy. Therefore, Tess is the liar.

M D M true D false (M says) ∧ (D says) T T T F F Puzzle2: T F TF / T F F FT / F F T F F FT / TF / F There is no way that the parental statements can be consistent. Project:

1.

D T T F F

berries are safe T F T F

D says T F F T


2.9. Bonus: Truth Tellers

9

If duck says yes, that could result from the berries being safe or unsafe; the same is true if the duck says no. 2. This will give no information about berries . . . .

3.

D T T F F

berries are safe T F T F

D∧ berries are safe T F FT / FT /

If duck says yes, that could result from the berries being safe or unsafe.

4.

D T T F F

berries are safe T F T F

D∨ berries are safe T T TF / FT /

If duck says yes, that could result from the berries being safe or unsafe.

5.

D T T F F

berries are safe T F T F

D ⇒ berries are safe T F /T F /T F

If duck says no, that could result from the berries being safe or unsafe. (If the duck says yes, we do learn that the berries are safe. However, we can’t depend on that answer.)

6.

D T T F F

berries are safe T F T F

D ⇐ berries are safe T T /F T /T F

If duck says yes, that could result from the berries being safe or unsafe. 7. Again, this tells us nothing about berries. We need to design a question that will produce answers that are consistent with the safety of the berries. Here are four questions that work: Would a duck who answers oppositely from you say that the berries are edible? Do you tell the truth if and only if the berries are edible? Is it true that (if the berries are safe, then you tell the truth) and (if the berries are safe, then you lie)?


10

2. Sets and Logic

If I asked you whether the berries are safe, what would you say? D T We give a truth table for this last question: T F F

berries are safe T F T F

D says T F /F T /T F

2.12 Problems about Sets and Logic 1. {2}. 2. The question is asking about non-urgent care. It excludes dental care and hospital care and urgent care. The question could have been worded, “In the last 12 months, how often did you get a prompt appointment for non-urgent health care at a doctor’s office or clinic?” 3. Here they are: (doctor or health provider), (discuss or provide), (methods and strategies), (smoking or using). All three of the ors are meant mathematically, but the and is used to mean union instead of intersection. 4. These are the negative integers {−9, . . . , −1}, so the cardinality of the set is 9.

5.

P T T F F

Q T F T F

¬P ∨ Q T F T T

P ∧ (¬P ∨ Q) T F F F

6. {2n | n ∈ W} or {n | n = 2k , k ∈ W}.

7.

8.

(a) {(2, 2), (2, 3), (3, 2), (3, 3)}.

(b) {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3), (2, 4), (3, 4), (4, 4), (4, 3), (4, 2)}. (c) {(1, 1), (2, 1), (3, 1)}.


2.12. Problems about Sets and Logic

11

9.

P T T F F

Q T F T F

¬P F F T T

¬Q F T F T

P⇒Q T F T T

¬Q ⇒ ¬P T F T T

10.

P T T F F

Q T F T F

¬P F F T T

¬Q F T F T

Q⇒P T T F T

¬P ⇒ ¬Q T T F T

11. Let A = {1, 2, 3} and B = {2, 3, 4}. 12. This is total nonsense. The moon is not made of green cheese. Even if Moscow had existed as a city in the time of Aristotle, he certainly was not and is not its President. Every fiber of your being is probably screaming “False, False, FALSE!” But think again. Because the moon is not made of green cheese, it doesn’t matter what the statement is claiming this implies; the implication holds anyway, because a false statement implies, well, everything. See the appropriate truth table.

13.

14. Let A,C be disjoint. For example, let A = {1, 2},C = {3}, B = {4}, D = {5}. Then (A × B) ∪ (C ×D) = {(1, 4), (2, 4), (3, 5)} but (A∪C)×(B∪D) = {(1, 4), (1, 5), (2, 4), (2, 5), (3, 4), (3, 5)}. 15. Use the contrapositive. Let B = 0. / Then A \ B = A \ 0/ = A, which is not equal to 0/ unless A = 0. / 16. Use a truth table and trace backwards. We will have one value for R but two possibilities each for P, Q, S, so we have eight rows. P T T T T F F F F

Q T T F F T T F F

S T F T F T F T F

R F F F F F F F F

P⇒Q T T F F T T T T

R∧S F F F F F F F F

(P ⇒ Q) ⇔ (R ∧ S) F F T T F F F F


Turn static files into dynamic content formats.

Create a flipbook
SOLUTIONS MANUAL for Discrete Mathematics with Ducks 2nd Edition by Sarah Marie Belcastro by welldoneassistant - Issuu