Solution of Work Sheet II
Solution of Work Sheet II
C1 C2 C3 C4
A A A A
B B B B
. . . .
. . . .
. . . .
Z Z Z Z
0 0 0 0
1 1 1 1
2 2 2 2
. . . .
. . . .
. . . .
9 9 9 9
=36 ways =36 ways =36 ways =36 ways
5. How many one-to-one functions are there from a set with five elements to
sets with the following number of elements?
a. 4 d. 6 c. 5 d. 7
Solution:
For each part of this problem, we need to find the number of one-to-one functions
from a set with 5 elements to a set with k elements. To specify such a function, we
need to make 5 choices, in succession, namely the values of the function at each of
the 5 elements in its domain. Therefore the product rule applies. The first choice can
be made in k ways, since any element of the codomain can be the image of the first
element of the domain. After that choice has been made, there are only k - 1 elements
of the codomain available to be the image of the second element of the domain,
since images must be distinct for the function to be one-to-one.
Similarly, for the third element of the domain, there are k - 2 possible choices for a
function value. Continuing in this way, and applying the product rule, we see that
there are k(k - l)(k - 2)(k - 3)(k - 4) one-to-one functions from a set with 5 elements
to a set with k elements.
a. By the analysis above the answer is 4 · 3 · 2 · 1 · 0 = 0, what we would expect
since there are no one-to-one functions from a set to a strictly smaller set.
b. By the analysis above, the answer is 6 · 5 · 4 · 3 · 2 = 720.
c. By the analysis above, the answer is 5 · 4 · 3 · 2 · 1 = 120.
d. By the analysis above, the answer is 7 · 6 · 5 · 4 · 3 = 2520
6. Every student in a discrete mathematics class is either a computer science
or a mathematics major or is a joint major in these two subjects. How many
students are in the class if there are 38 computer science majors (including
joint majors), 23 mathematics majors (including joint majors), and 7 joint
majors?
Solution:
Let C be number of computer science major students
M be number of mathematics major students
We have n(C) =38, n(M)= 23. Then
By principle of inclusive exclusive
𝑛(𝐶 ∪ 𝑀) = 𝑛(𝐶) + 𝑛(𝑀) - 𝑛(𝐶 ∩ 𝑀)
= 38 + 23 – 7
= 54
8. Exercise
9. How many possibilities are there for the winning of first, second, and third
positions in a horse race with 12 horses if all orders of finish are possible?
Solution:
It is 3-permutation of 12 element set. So
12! 12(11)(10)9! 12(11)(10)
P(12, 3) = = = =210
3!(12−3)! 3!9! 3!
21 21
Solution: ( ) = ( ) ways
10 10