DM - Generalized Permutations and Combinations: NGUYEN Hoang Thach
DM - Generalized Permutations and Combinations: NGUYEN Hoang Thach
DM - Generalized Permutations and Combinations: NGUYEN Hoang Thach
23/04/2020
Outline
Examples:
The number of different outcomes when two dice are rolled:
6 × 6 = 36.
The number of possible three-letter initials: 263 = 17576.
Theorem
The number of r -permutations of n elements with repetition allowed is nr .
Example: Find the number of outcomes when two dice are rolled, if the
order of the results does not matter (ie. (1, 2) and (2, 1) count as one
outcome).
If we sort the cookies by kind then arrange them into a row and put a
separator between neighboring kinds, then each way to take the cookies
can be represented as a row of 6 stars and 3 separators. For instance, (2,
1, 1, 2) is represented as follows:
∗ ∗ | ∗ | ∗ | ∗ ∗
Each way to take the cookies corresponds to a way to arrange 6 stars and
3 bars into a row, which corresponds to a choice of the three positions of
the bars out of nine places.
Answer: C (9, 3) = 84.
Theorem
The number of r -combinations of n elements when repetition is allowed is
C (n + r − 1, r ) = C (n + r − 1, n − 1).
Theorem
The number of different permutations of n objects, among which are n1
identical objects of type 1, n2 identical objects of type 2, etc. is
n!
.
n1 !n2 ! . . . nk !
Theorem
The number of ways to distribute n distinguishable balls into k
distinguishable boxes so that ni objects are placed into box i, i = 1, 2, ..., k
is
n!
.
n1 !n2 ! . . . nk !
Example: How many ways are there to put four different employees into
three indistinguishable offices, when each office can contain any number of
employees?
Answer: 14 ways (list and count).
(4, 0, 0): 1 way.
(3, 1, 0): 4 ways.
(2, 2, 0): 3 ways (why is it not 6?)
(2, 1, 1): 6 ways (why is it not 12?)
1 k−1
!
X k
S(n, k) = (−1)i (k − i)n .
k! i=0 i
Example: How many ways are there to put four different employees into
three indistinguishable offices, when each office can contain any number of
employees?