Assignment 4
Assignment 4
Department of Mathematics
Discrete Mathematics
Assignment 4
1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in
the building?
2. A particular brand of shirt comes in 12 colors, has a male version and a female version, and
comes in three sizes for each sex. How many different types of this shirt are made?
3. How many bit strings of length five do not have two consecutive 1s and do not have two consec-
utive 0s?
4. How many bit strings of length five do not have three consecutive 1s and do not have three
consecutive 0s?
5. There are four major auto routes from Boston to Detroit and six from Detroit to Los Angles.
How many major auto routes are there from Boston to Los Angles via Detroit?
7. How many different three-letter initials with none of the letters repeated can people have?
8. How many different three-letter initials are there that begin with an A?
9. How many bit strings of length ten both begin and end with a 1?
10. How many bit strings are there of length six or less?
11. How many strings are there of lowercase letters of length four or less?
12. How many license plates can be made using either two letters followed by four digits or two
digits followed by four letters?
1
(a) P (6, 3) (e) P (10, 9) (i) C(8, 0)
16. A group contains n men and n women. How many ways are there to arrange these people in a
row if the men and women alternate?
17. In how many ways can a set of five letters be selected from the English alphabet?
21. Show that the sequence {an } is a solution of the recurrence relation an = −3an−1 + 4an−2 if
(a) an = 0 (c) an = 1
22. If the sequence {an } is a solution of the recurrence relation an = 8an−1 − 16an−2 if
(a) an = 0 (c) an = 2n ?
(b) an = 1 (d) an = 4n ?
23. Show that the sequence {an } is a solution of the recurrence relation an = an−1 + 2an−2 + 2n − 9
if
24. A person deposits $1000 in an account that yields 9% interest compounded annually
(a) Set up a recurrence relation for the amount in the account at the end of n years.
2
(b) Find an explicit formula for the amount in the account at the end of n years.
(c) How much money will the account contain after 100 years?
25. Determine which of these are linear homogeneous recurrence relations with constant coefficients.
Also, find the degree of those that are.
(c) an = an−1 + 2
(d) an = an−2
(e) an = an−1 + n
26. Determine which of these are linear homogeneous recurrence relations with constant coefficients.
Also, find the degree of those that are.
(a) an = 3an−2
(b) an = a2n−1
(c) an = an−1 /n
(e) an = 3
27. Solve these recurrence relation together with the initial conditions given.
28. Solve these recurrence relation together with the initial conditions given.
29. Find the solution to an = 2an−1 +an−2 −2an−3 for n = 3, 4, 5, · · · , with a0 = 3, a1 = 6 and a2 =
0.
30. Find the solution to an = 7an−2 + 6an−3 with a0 = 9, a1 = 10, and a2 = 32.