Combinatorics Notes 4
Combinatorics Notes 4
It is like the situation where we put 1 book in each of the 4 shelves, so that now
there are 28 books are remaining to be distributed in the 4 shelves. This way
each book shelf will have at least 1 book, which is strictly greater than 0.
(d) It is like the situation where there is at least one book on first, second and third
book shelves, and the fourth book shelf must hold at least one book and at most 25
books.
Thus, the number of solutions such that 𝑥1 , 𝑥2 , 𝑥3 > 0 and 0 < 𝑥4 ≤ 25 = (the number of
solutions such that 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 > 0) − (the number of solutions such that 𝑥1 , 𝑥2 , 𝑥3 > 0 and
𝑥4 > 25) = 𝑎 − 𝑏 (say).
From part (b), 𝑎 = 𝐶(31,28) = 4495.
To find 𝑏, we put 𝑥1′ = 𝑥1 − 1, 𝑥2′ = 𝑥2 − 1, 𝑥3′ = 𝑥3 − 1, 𝑥4′ = 𝑥4 − 26, so that 𝑥𝑖′ ≥ 0, 1 ≤ 𝑖 ≤
4. Then the given equation becomes 𝑥1′ + 𝑥2′ + 𝑥3′ + 𝑥4′ = 3, for which the number of non-
negative solutions equals 𝑏 = 𝐶(4 + 3 − 1, 3) = 𝐶(6, 3) = 20.
Therefore, the required number of solutions = 𝑎 − 𝑏 = 4495 − 20 = 4475.
DERANGEMENT
Ques 3: Let 7 books be distributed to 7 students. Suppose that the books are returned and
re-distributed to the students so that no student gets the same book twice. In how many
ways can this be done?
Solution: The first time the books can be distributed in 7! ways, and the second time it can
be done in 𝐷7 ways. Hence, the total number of ways in which the books can be distributed
1 1 1 1 1 1 1
and then re-distributed is given by 7! × 𝐷7 = (7!)2 [1 − 1! + 2! − 3! + 4! − 5! + 6! − 7!] =
2520−840+210−42+7−1
(7!)2 [ ] = 7! × 1854 = 5040 × 1854 = 93,44,160 ways.
7!
Ques 4: Find the number of derangements of the integers from 1 to 10 inclusive, satisfying
the condition that the set of elements in the first 5 places is:
Solution:
(a) The integers 1, 2, 3, 4, 5 can be placed into the first 5 places in 𝐷5 ways, the last 5
integers 6, 7, 8, 9, 10 can also be placed in the last 5 places in 𝐷5 ways. Hence, the
answer is 𝐷5 . 𝐷5 = 1936 ways.