Book of Proof - Amazon S3
Book of Proof - Amazon S3
Book of Proof - Amazon S3
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
254 Solutions<br />
5. How many 7-digit binary strings begin in 1 or end in 1 or have exactly four 1’s?<br />
Answer: Let A be the set <strong>of</strong> such strings that begin in 1. Let B be the set <strong>of</strong> such<br />
strings that end in 1. Let C be the set <strong>of</strong> such strings that have exactly four 1’s.<br />
Then the answer to our question is |A ∪B∪C|. Using Equation (3.4) to compute<br />
this number, we have |A∪B∪C| = |A|+|B|+|C|−|A∩B|−|A∩C|−|B∩C|+|A∩B∩C| =<br />
2 6 + 2 6 + ( 7<br />
4<br />
)<br />
− 2 5 − ( 6<br />
3<br />
)<br />
−<br />
( 63<br />
)<br />
+<br />
( 52<br />
)<br />
= 64 + 64 + 35 − 32 − 20 − 20 + 10 = 101.<br />
7. This problem concerns 4-card hands dealt <strong>of</strong>f <strong>of</strong> a standard 52-card deck. How<br />
many 4-card hands are there for which all four cards are <strong>of</strong> the same suit or<br />
all four cards are red?<br />
Answer: Let A be the set <strong>of</strong> 4-card hands for which all four cards are <strong>of</strong> the<br />
same suit. Let B be the set <strong>of</strong> 4-card hands for which all four cards are red.<br />
Then A ∩ B is the set <strong>of</strong> 4-card hands for which the four cards are either all<br />
hearts or all diamonds. The answer to our question is |A∪B| = |A|+|B|−|A∩B| =<br />
4 ( ) (<br />
13<br />
4<br />
+<br />
26<br />
) (<br />
4<br />
− 2<br />
13<br />
) (<br />
4<br />
= 2<br />
134<br />
) (<br />
+<br />
26<br />
)<br />
4<br />
= 1430 + 14950 = 16380.<br />
9. A 4-letter list is made from the letters L,I,S,T,E,D according to the following<br />
rule: Repetition is allowed, and the first two letters on the list are vowels or<br />
the list ends in D.<br />
Answer: Let A be the set <strong>of</strong> such lists for which the first two letters are<br />
vowels, so |A| = 2 · 2 · 6 · 6 = 144. Let B be the set <strong>of</strong> such lists that end in D, so<br />
|B| = 6 · 6 · 6 · 1 = 216. Then A ∩ B is the set <strong>of</strong> such lists for which the first two<br />
entries are vowels and the list ends in D. Thus |A ∩ B| = 2 · 2 · 6 · 1 = 24. The<br />
answer to our question is |A ∪ B| = |A| + |B| − |A ∩ B| = 144 + 216 − 24 = 336.<br />
Chapter 4 Exercises<br />
1. If x is an even integer, then x 2 is even.<br />
Pro<strong>of</strong>. Suppose x is even. Thus x = 2a for some a ∈ Z.<br />
Consequently x 2 = (2a) 2 = 4a 2 = 2(2a 2 ).<br />
Therefore x 2 = 2b, where b is the integer 2a 2 .<br />
Thus x 2 is even by definition <strong>of</strong> an even number.<br />
■<br />
3. If a is an odd integer, then a 2 + 3a + 5 is odd.<br />
Pro<strong>of</strong>. Suppose a is odd.<br />
Thus a = 2c + 1 for some integer c, by definition <strong>of</strong> an odd number.<br />
Then a 2 + 3a + 5 = (2c + 1) 2 + 3(2c + 1) + 5 = 4c 2 + 4c + 1 + 6c + 3 + 5 = 4c 2 + 10c + 9<br />
= 4c 2 + 10c + 8 + 1 = 2(2c 2 + 5c + 4) + 1.<br />
This shows a 2 + 3a + 5 = 2b + 1, where b = 2c 2 + 5c + 4 ∈ Z.<br />
Therefore a 2 + 3a + 5 is odd.<br />
■<br />
5. Suppose x, y ∈ Z. If x is even, then xy is even.<br />
Pro<strong>of</strong>. Suppose x, y ∈ Z and x is even.<br />
Then x = 2a for some integer a, by definition <strong>of</strong> an even number.<br />
Thus xy = (2a)(y) = 2(ay).<br />
Therefore xy = 2b where b is the integer ay, so xy is even.<br />
■