Week 10 DM
Week 10 DM
1. There are four students, Lily, Mark, Nathan, and Olivia, each with a preferred sub-
ject. Lily likes History, Mark likes Physics, Nathan likes Chemistry, and Olivia likes
Mathematics. In how many ways can these subjects be arranged such that no one
gets their favorite subject?
(a) 0
(b) 1
(c) 2
(d) 3
4 4 4 4
N = 4! − 3! − 2! + 1! − 0! = 24 − (24 − 12 + 4 − 1) = 3
1 2 3 4
2. How many onto functions are possible from a set of 5 elements to a set of 3 elements?
(a) 150
(b) 180
(c) 240
(d) 200
a + b + c = 12,
However, this count includes cases where the variables exceed their specified limits.
We need to subtract those over-counted cases.
Let: - C1 : solutions where a ≥ 3, - C2 : solutions where b ≥ 6, - C3 : solutions where
c ≥ 5.
Now, we calculate each over-counted case:
For N (C1 ) (where a ≥ 3):
a′ + b + c = 9,
Number of solutions is:
(3 + 9 − 1) 11
N (C1 ) = = = 55.
9 2
Similarly:
(3 + 6 − 1) 8
N (C2 ) = = = 28,
6 2
(3 + 7 − 1) 9
N (C3 ) = = = 36.
7 2
a + b + c ≥ 3 + 6 + 5 = 14 > 12.
Finally, using the principle of inclusion-exclusion, we get:
N (C1 ∩C2 ∩ C3 ) = N −[N (C1 )+N (C2 )+N (C3 )]+[N (C1 ∩C2 )+N (C2 ∩C3 )+N (C1 ∩C3 )]−N (C1 ∩C2 ∩C3 ).
So, the number of integer solutions is 3. Lecture 389: Example 12 Integer solutions
of an equation.
4. In how many ways can 4 roses, 6 tulips, and 5 lilies be arranged in a row, such that
no consecutive 4 flowers of the same type are together?
15! 11! 7!
(a) 4!·6!·5! − 3!·6! + 3!·4! − 3!
15! 11! 7!
(b) 4!·6!·5! − 3 3!·6! + 3 3!·4! − 3!
15! 11! 7!
(c) 4!·6!·5! − 3 3!·6! + 3 3!·4! − 5!
15! 11! 7!
(d) 6!·5! − 3 5! + 3 4! − 3!
5. On a 3 × 3 garden grid:
Which of the following statements are true? (Select all that apply)
(a) I and II
(b) II and III
(c) I and III
(d) All of the above
Correct Answer: (c) I and III
Solution: Two flowers can be planted in 12 ways.
6. Find the number of positive integers between 0 to 150 that are either odd or the cube
of an integer.
(a) 86
(b) 77
(c) 80
(d) 89
(a) 8
(b) 10
(c) 12
(d) 15
8. Seven students are called for a game. They each have a uniquely colored notebook,
and the notebooks are placed in a box. Each student is asked to pick a notebook at
random (they cannot see the color). In how many ways can these 7 students pick
the notebooks so that no one picks their own notebook (each student picks someone
else’s notebook)?
(a) 1854
(b) 3600
(c) 1855
(d) 1400
9. For some alphabets a,b,c, . . . (n − 1)th alphabet, (n)th alphabet, there are 130962
derangements, where a,b,c,d appear in the first 4 positions. What is the value of n?
(a) 13
(b) 8
(c) 11
(d) 12
(a) 49
(b) 53
(c) 61
(d) 65