06.09.2021 Views

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

354 B. Selected Solutions<br />

1.7.6. 51 passengers. We are asking for the size of the union of three<br />

non-disjoint sets. Using PIE, we have 25 + 30 + 20 − 10 − 12 − 7 + 5 51.<br />

1.7.7.<br />

(a) 2 8 strings.<br />

(b) ( 8<br />

5) strings.<br />

(c) ( 8<br />

5) strings.<br />

(d) There is a bijection between subsets and bit strings: a 1 means that<br />

element in is the subset, a 0 means that element is not in the subset.<br />

To get a subset of an 8 element set we have an 8-bit string. To make<br />

sure the subset contains exactly 5 elements, there must be 5 1’s, so<br />

the weight must be 5.<br />

(<br />

1.7.8. 13<br />

(<br />

10)<br />

+<br />

17<br />

)<br />

8 .<br />

1.7.9. With repeated letters allowed, we select which 5 of the 8 letters will<br />

be vowels, then pick one of the 5 vowels for each spot, and finally pick one<br />

of the other 21 letters for each of the remaining 3 spots. Thus, ( 8) 5 5 5 21 3<br />

words.<br />

Without repeats, we still pick the positions of the vowels, but now<br />

each time we place one there, there is one fewer choice for the next one.<br />

Similarly, we cannot repeat the consonants. We get ( 8<br />

5) 5!P(21, 3) words.<br />

1.7.10.<br />

(a) ( 5) ( 11<br />

2 6<br />

) paths.<br />

(b) ( 16) (<br />

8 − 12<br />

) ( 4<br />

)<br />

7 1 paths.<br />

(c) ( 5) ( 11<br />

) (<br />

2 6 + 12<br />

) ( 4<br />

) (<br />

5 3 − 5<br />

) ( 7<br />

) ( 4<br />

)<br />

2 3 3 paths.<br />

(<br />

1.7.11. 18<br />

) ( ( 18<br />

) )<br />

8 8 − 1<br />

exactly one fewer route back.<br />

1.7.12. 2 7 + 2 7 − 2 4 strings (using PIE).<br />

routes. For each of the ( 18) 8 routes to work there is<br />

1.7.13.<br />

( 7<br />

3<br />

) ( + 7<br />

) (<br />

4 − 4<br />

)<br />

1 strings.<br />

1.7.14. There are 4 spots to start the word, and then there are 3! ways to<br />

arrange the other letters in the remaining three spots. Thus the number of<br />

words avoiding the sub-word “bad” in consecutive letters is 6! − 4 · 3!.<br />

If we now need to avoid words that put “b” before “a” before “d”, we<br />

must choose which spots those letters go (in that order) and then arrange<br />

the remaining three letters. Thus, 6! − ( 6<br />

3) 3! words.<br />

1.7.15. 2 n is the number of lattice paths which have length n, since for<br />

each step you can go up or right. Such a path would end along the line

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!