Combinatorics Question Bank
Combinatorics Question Bank
5. For n = 10, find the number of permutations such that no one is
in their own home.
7. Find the generating function in closed form for the sequence
{a_k}, where a_k = 3 for all k >= 0.
13.Find the generating function for the sequence <1, a, a², a³, ...>.
14.How many bit strings of length 8 either start with 1 bit or end
with two zero bits?
37.Let g(x) = 1/(1-x)² = sum from i=0 to infinity of g(i)·x^i. Find g(i).
38. How many ways are there to distribute 8 identical balls into
12 different boxes?
39. How many strings of length 6 over the alphabet {a, b, c} have
at least 5 consecutive 'a's?
40. For n = 10, find the number of ways so that everyone is at
their own home.
43. Find the generating function in closed form for the sequence
{a_n} = n + 1 for n ≥ 0.
46. How many strings of length 6 over the alphabet {A, B, C} start
with 'c' or 'b'?
52. How many ways can we select a first prize winner, second
prize winner, and 3rd prize winner from 100 different people who
have participated in a contest?
56. What is the formula for the nth Catalan number? (Also
provide values for n = 0 to 8.)
64. How many ways are there to pack six copies of the same
book into 4 identical boxes?
65. For n = 10, find the number of ways so that first 5 people are
at their own homes.
69. Find the generating function G(x) for the sequence a_n = n +
1 for odd n and 1 otherwise.
71.For n = 10, find the number of ways so that last 5 people are in
last 5 positions and first 5 are in first 5 positions (but no one is in
their own home).
72.What is the total number of compositions of size n?
84. Find the number of ways to split a group of n people into two
teams.
86. How many bit strings of length 10 have more zeroes than
ones?
88. Find the number of bit strings of length 8 starting with either
00 or 000.
95. How many ways are there to distribute 12 friends into groups
of sizes (2, 2, 2, 3, 3)?
98. How many positive integers not exceeding 1000 are divisible
by 7 or 11?
{a, b}$.
105. Suppose there are 9 math faculty and 11 CSE faculty. Count
are at least two people present who shook hands with exactly
computer gets the hardest job and the slowest gets the
easiest? (Each computer must get at least one job.)
111. Find the number of integers between $[1, 100]$ which are
116. Find the sequence for the generating function $G(n) = x^2$.
ANSWER KEY:
1. n^n
6. Proof: Let n be any natural number. Consider the numbers 1, 11,
111, ... (with k ones). By the pigeonhole principle, at least two of
the n+1 numbers 1, 11, 111, ..., 11...1 (with n+1 ones) must give the
same remainder when divided by n. Let these be 11...1 (with i
ones) and 11...1 (with j ones) where i < j. Then their difference 11...1
(with j-i ones followed by i zeros) is divisible by n. This number
consists only of 0s and 1s and is a multiple of n.
13.G(x) = 1/(1-ax)
17.10! - D₁₀ = 10! - 10!(1 - 1/1! + 1/2! - 1/3! + ... + 1/10!) = 3,268,599
19.11!/(1!×4!×4!×2!) = 34,650
20. n
21.C(k-nx+n-1,n-1)
22.C(n+r-1,r)
25. n^m
32.C(n+m-1,n)
33. Proof: Consider the k numbers: 3, 30, 33, 300, 303, 330, 333, ...
(containing only 0s and 3s). By the pigeonhole principle, at least
two of these k+1 numbers must give the same remainder when
divided by k. Their difference is divisible by k and contains only
0s and 3s.
34. C(n,3)
39. 2 × 3¹ + 1 × 3⁰ = 7
40. 1
59. C(n-1,k-1)
61.2⁶ + 2⁶ - 2⁵ = 64 + 64 - 32 = 96
62. Size 7: 5 × 26³ = 5 × 17,576 = 87,880 Size 6: 26³ = 17,576
General: 26^⌈n/2⌉
64. p(6,4) = 9
65. 5! = 120
66. a₃ - a₀ = 10 - 1 = 9
67. 26³ × 100 - C(3,1) × 25² × 100 + C(3,3) × 25⁰ × 100 = 17,576,000 -
1,875,000 + 100 = 15,701,100
70.5! = 120
72.2^(n-1)
77.2³ = 8
79. 9 × 9 × 8 × 7 × 6 × 5 = 136,080
83. 9 × 8 × 7 × 6 × 1 = 3,024
84. 2^(n-1) - 1
87. C(n+1,1) - 1 = n
88. 2⁶ + 2⁵ - 2⁵ = 2⁶ = 64
89. Proof: Consider the numbers 5, 55, 555, ... (with k fives). By the
pigeonhole principle, at least two of the n+1 numbers 5, 55, 555,
..., 55...5 (with n+1 fives) must give the same remainder when
divided by n. Their difference is divisible by n and consists only
of 5s followed by 0s.
90. (26 + 10)⁶ + (26 + 10)⁷ + (26 + 10)⁸ - 26⁶ - 26⁷ - 26⁸ =
2,941,499,932,640
91.2⁶ + 2⁵ - 2³ = 64 + 32 - 8 = 88
97. 2⁵ + 2⁴ - 2² = 32 + 16 - 4 = 44
99. 4! = 24
100. 15
101. 3! = 6
102. 49!
104. 1
106. 0
108. Proof: Let S = {a₁, a₂, ..., a_n} be the set of people at the party.
For each person a_i, let d_i be the number of hands they shook.
The sum Sum from i=1 to n of d_i must be even (as each
handshake is counted twice). If all d_i were distinct, then {d₁, d₂,
..., d_n} = {0, 1, 2, ..., n-1}. But then Sum from i=1 to n of d_i =
n(n-1)/2, which is the maximum possible number of
handshakes. This contradicts the fact that not everyone shakes
hands with everyone else. Therefore, at least two people must
have shaken hands with the same number of people.
109. 26^⌈k/2⌉