Permutations w12 Part2
Permutations w12 Part2
B1 OB2 B1 B2 O OB1 B2
B2 OB1 B2 B1 O OB2 B1
However, if the B 0 s are not distinguishable (replacing B1 and B2 with B), we see there are
only 3 permutations:
BOB BBO OBB
The number of permutations of the letters in BOB can be computed as
3! 3 2 1
= =3
2! 2 1
where 3! represents the number of permutations of 3 letters, assuming that none are dupli-
cates, and 2! represents the number of ways the 2 items that are duplicates can be arranged
(B1 B2 or B2 B1 ). In general we have the following rule:
M O1 O2 L1 L2 O3 O4 W O5 O6 L3 O7 O8 and M O2 O1 L1 L2 O3 O4 W O5 O6 L3 O7 O8
1
are considered to be dierent arrangements. In this case there are 13! arrangements of 13
dierent letters. On the other hand, the 8 dierent O0s are having a private contest among
themselves to see who is used rst, second, and so on, and they have 8! ways of resolving
this. Similarly, the 3 dierent L0s have 3! ways of resolving their own dispute. Unlabelling
the O0s and L0s, we see that we have overcounted, and the correct number is really only
13! 13 11 10 9 8! 13 11 10 9
= = = 13 11 5 3 = 25740
8!3! 8! 1 2 3 2 3
Example 6: Duplicate Letters
In how many dierent ways can the letters of the word MISSISSIPPIbe arranged?
Solution: of the 11 letters, 4 are I0s, 4 are S0s, and 2 are P 0s. The number of possible
arrangements is
11! 11 10 9 8 7 6 5 4 3 2 1 11 10 9 8 7 6 5 11 10 9 7 5
= = = = 34650
4!4!2! 4 3 2 1 4 3 2 1 2 1 4 3 2 2 1
COMBINATIONS
When the order of the selection of the items is unimportant to the nal outcome, the problem
is a combination problem.
Recall that permutations are ordered arrangements. For example,
a; b; c
b; c; a
2
are two dierent permutations because the ordering of the 3 letters is dierent. But the letters
a; b; c and b; c; a represent the same combination of letters because the same letters are used
in each set. However, the letters a; b; c and a; b; d represent two dierent combinations of
letters because the letters contained in each set are dierent.
n Pr represents the number of permutations when r items are selected from n distinct
items. Similarly, n Cr represents the number of combinations when r items are selected from
n distinct items.
Consider the set of 5 elements fa; b; c; d; eg : The number of permutations of 2 letters
from the set is represented as 5 P2 and the number of permutations of 2 letters from the set
is represented as 5 C2 :
Permutations Combinations
ab; ba; ac; ca; ad; da; ae; ea; bc; cb; ab; ac; ad; ae; bc;
20 10
bd; db; be; eb; cd; dc; ce; ec; de; ed bd; be; cd; ce; de
5 P2 =2 5 C2
3
If we repeated this same process for comparing the number of permutations in n Pr with the
number of combinations in n Cr , we would nd that
n Pr = r! n Cr
Dividing both sides of the equation gives
n Pr
n Cr =
r!
n!
Since n Pr = (n r)!
, the combination formula may be expressed as
n!
n Cr =
(n r)! r!
The number of combinations possible when r objects are selected from n objects is found
by the combination formula
n!
n Cr =
(n r)! r!
Example: Exam question selection
An exam consists of 6 questions. Any 4 may be selected for answering. In how many
ways can this selection be made?
Solution: This problem is a combination problem because the order in which the four
questions are answered does not matter. n = 6; r = 4:
6! 6! 6 5 4! 6 5 3 5
6 C4 = = = = = = 15
(6 4)! 4! 2! 4! 1 2 4! 2 1
Example: Airline seat availability
A commercial airline is seating passengers. With a few minutes to go before take-o,
there are 9 passengers who are ying standby and wish to get seats, but only 5 seats are
available. Determine the number of dierent ways a group of 5 people can be selected from
the 9 to board the plane. So we need to choose 5 people out of 9.
Solution: n = 9; r = 5:
9! 9! 9 8 7 6 5! 9 8 7 6 9 2 7
9 C5 = = = = = = 9 2 7 = 126
(9 5)! 5! 4! 5! 1 2 3 4 5! 2 3 4 1
Example: Dinner combinations
At a restaurant, dinner for 8 people consists of 3 items from column A, 4 items from
column B and 3 items from column C. If columns A; B; C have 5; 7; 6 items respectively,
how many dierent dinner combinations are possible?
Solution: For column A, 3 out of 5 items must be selected, which can be represented as
5 C3 : For column B, 4 out of 7 items must be selected, which can be represented as 7 C4 : For
column C, 3 out of 6 items must be selected, or 6 C3 :
5! 5 4 3!
5 C3 = = = 5 2 = 10;
2! 3! 1 2 3!
7! 7 6 5 4!
7 C4 = = = 7 5 = 35;
3! 4! 1 2 3 4!
6! 6 5 4 3!
6 C3 = = = 5 4 = 20:
3! 3! 1 2 3 3!
4
Using the counting principle, we can determine the total number of dinner combinations by
multiplying the number of choices from columns A; B, and C:
5 C3 7 C4 6 C3 = 10 35 20 = 7000
We have considered various counting methods, including the counting principle, permuta-
tions, and combinations. We often need to decide which method to use to solve a problem.
Problems solved with the permutation formula may also be solved by using the counting
principle.
(b) Combinations
Combinations are used when order is not important. For example, a; b; c and b; c; a are the
same combination of three letters. But a; b; c, and a; b; d are two dierent combinations of
three letters.
n!
n Cr =
(n r)! r!