Professional Documents
Culture Documents
DM-exer-AnswerKeys
DM-exer-AnswerKeys
4. 2n .
5. 1285 − 1275 .
7.
8. 26 · 100.
9. 263 · 103 .
13. (1, 1, 1); (1, 1, 2); (1, 2, 1); (2, 1, 1); (1, 2, 2); (2, 1, 2); (2, 2, 1); (2, 2, 2).
14.
15.
1
16. nm .
17.
5!
18. 3!
.
n!
19. m!
.
20. 52 · 51 · 50.
21. C(52, 2)
22. Given n different objects put in a secret box. Take k objects out of the
box.
n!
(a) k!
(b) C(n, k)
23. nk
n!
24. k!
if k ≤ n and 0 otherwise.
28. C(10, 3)
29.
30.
31. 5!
32. 2(n!)2 .
2
35. 26 + 25 − 24 .
36.
42. False
10!
43. 2!4!
.
7!
44. 3!·2!
.
10!
45. − 3!·2!·5! 28 · 32
3
56. (a) No
(b) No
(c) Yes
(d) No
(e) Yes
57.
60.
61. a) No
b) No
c) Yes
d) No
64.
65.
66. 1015
68. 0
15!
69. 5!
.
72.
4
73.
74.
75.
76.
77.
78.
79.
7!
80. 3!·2!·2!
.
6!
81. 2!
82.
84. (n!)2 .
85. 31
86.
87.
88.
89.
90.
91.
92.
5
2 Advanced counting rules
1
1. (a) (1−x)2
1
(b) (1−x)n
.
1+x
(c) (1−x)3
.
x
(d) 1−x−x2
√
1− 1−4x
(e) 2x
.
1
(f) (1−x)2
.
2. (a) A(x).(x + 1)
A(x)−a0
(b) x
.
A(x)−a0
(c) A(x) + x
(d) A(2x)
A(x)
(e) 1−x
(f) A(bx).
A(x)+A(−x)
(g) 2
√ √
A( x)+A(− x)
(h) 2
.
1
3. (1−x3 )(1−x5 )(1−x7 )
.
x5 +x6
4. (1−x2 )4
x8
5. (1−x)(1−x4 )(1−x6 )
.
x5 (1−x5 )2
6. (1−x)3
; a7 = 6.
7.
8. C(n + k − 1, k).
x2
9. (1−x)(1−2x)
; and S(n, 2) = 2n−1 − 1.
2
10. (a) 1−3x
and an = 2 · 3n .
x+2
(b) 1−3x
and an = 7 · 3n−1 for n ≥ 1 and a0 = 2.
6
1+2x 2
(c) 1−5x+4x2
, and an = 3
+ 31 4n .
8+10x 24x2
(d) 1+8x−9x2
+ (1−3x)(1+8x−9x2 )
, and un = ...
2−4x
(e) (1−2x)(1−4x)
and un = 2n−1 + 21 4n .
(f)
12. Use generating function to find the number of different ways 10 identical
balloons can be given to four children if each child receives at least two
balloons.
13. Use generating function to find the number of different ways 15 identical
objects can be put into 6 distinct boxes such that each box contains at
least one but no more than three objects.
14. How many words are formed from all letters of the word MISSISSIPPI
that
15. Use the PIE to find the number of positive integers not exceeding 100
that are NOT divisible by 5 or by 7.
16. Using the PIE to find the number of positive integers not exceeding
100 that are either odd or square of an integer.
17. Find the number of positive integers not exceeding 1000 that are either
square or cube of an integer.
18. How many elements are in the union of four sets if each of the sets has
100 elements, each pair of the sets share 50 elements, each three of the
sets share 25 elements, and there are 5 elements in all four sets.
7
19. In a survey of of 270 college students, it is found that 64 students like
Brussels sprout, 94 like broccoli, 58 like cauliflower, 26 like both Brus-
sels sprout and broccoli, 28 like both Brussels sprout and cauliflower, 22
like both cauliflower and broccoli, and 14 like all three vegetables. How
many students of the 270 students do not like any of these vegetables.
20. How many terms are there in the formula for the number of elements
in the union of 5 sets given by the PIE?
22. How many non-negative integer solutions does the following equation
have
x + y + z = 13, where 0 ≤ x, y, z ≤ 6.
23. How many non-negative integer solutions does the following equation
have
x + y + z + t = 18, where 0 ≤ x ≤ 4, 0 ≤ y ≤ 7.
24. How many surjective (onto) functions from a set with 7 elements to a
set with 5 elements.
25. How many ways are there to distribute six different toys to three dif-
ferent children such that each child gets at least one toy.
26. In how many ways can eight distinct balls be distributed into three
distinct urns if each urn must contain at least one ball.
27. How many derangements of [4] are there. List all derangements of [4].
28. A group of 8 students is assigned seats for each of two classes in the
same classroom. How many ways can these seats be assigned if no
student is assigned the same seat for both classes.
29. How many non-negative integers not exceed 100 are there which are
relatively prime with 100?
8
3 Graphs
10.1: 23, 3-6, 9 (Rosen’s textbook, Chapter 10.1)
10.2: 1-6, 16-22, 25, 34, 37-44, 46 (Rosen’s textbook, Chapter 10.2)
10.3: 5, 7, 9, 10, 12, 18, 22-28, 39-40 (Rosen’s textbook, Chapter 10.3)
10.4: 1-3, 7-9, 12-14, 21-23, 25, 33, 38, 42, 43 (Rosen’s textbook, Chapter
10.4)
3. Show that a bipartite graph with an odd number of vertices does not
have a Hamiltonian cycle.
9
11. Prove that if G is connected and planar graph, then G has a vertex of
degree not exceeding five.
12. Suppose that a connected planar graph has 20 vertices, each of degree
3. Into how many regions does a representation of this planar graph
split the plane?
15. Show that any connected triangle-free planar graph, i.e. it has no simple
cycle of length three, has at least one vertex of degree not exceeding
three.
16. Prove by induction on the number of vertices that any connected triangle-
free planar graph is 4-colorable.
10
4 Trees
1. Given the following rooted tree
a c o i
b k g f
h l e m n
p q
4. How many leaves does a full 3-ary tree with 100 vertices have?
5. Either draw a full m-ary tree with 84 leaves and height 3, where m is
a positive integer, or show that no such tree exists
7. Does there exists a full m-ary tree with height 4 and 100 leaves?
11
8. Suppose 1000 people enter a chess tournament. Use a rooted tree model
of the tournament to determine how many games must be played to
determine a champion, if a player is eliminated after one loss and games
are played until only one entrant has not lost. Assume that there are
no ties.
13. Given the following labeled trees. Determine their Prufer codes
1 2
9 5 3 8
7 2 3 8 4 7 9 6 10
10 6 4 1 5
14. Determine which trees have Prufer codes that have distinct value in all
positions. How many labeled trees with n vertices are there that their
Prufer codes satisfy this property?
15. How many labeled trees with 6 vertices are there such that its degrees
sequence is
16. How many labeled trees with n vertices are there such that the degree
of node labeled by n is equal to k?
12
17. How many labeled rooted forests on n vertices are there?
18. How many labeled rooted forests on n vertices with exactly k compo-
nents are there?
19. Find a spanning tree for each of these graphs: K5 , C5 , K1,6 , K2,3 , Q3
20. Draw all the spanning trees of C5 and determine how many spanning
trees does C5 have? Find its Laplacian, reduced Laplacian matrices.
Check your result by using Matrix-Tree Theorem. How many spanning
trees does Cn have?
21. How many trees are there in the spanning forest of a graph?
22. How many edges must be removed to produce the spanning forest of a
graph with n vertices, m edges, and c connected components?
23. How many different spanning trees does each of these graphs have?
(a) K2,2
(b) Cn
(c) K1,n
(d) Km,n
(e) Q3
(f) Wn
24. Which connected simple graphs have exactly one spanning tree?
26. Prove that if G is a connected, simple graph with n vertices and G does
not contain a simple path of length k, then it contains at most (k − 1)n
edges.
13
28. Let G be a graph and v be a cut vertex of G. Assume that cutting vertex
v creates k connected components G1 , G2 , . . . , Gk . Assume that the
complexities of G\ ∪i̸=1 Gi , G\ ∪i̸=2 Gi , . . . , G\ ∪i̸=k Gi are κ1 , κ2 , . . . , κk
respectively. Using Matrix-Tree Theorem to prove that
κ(G) = κ1 κ2 · · · κk .
14