Week 5 - (Part A) Permutations and Combinations
Week 5 - (Part A) Permutations and Combinations
Section…………………………………………………………………………………………… Page
Bibliography ……………………………………………………………………………………...13
Given a set of numbers 1,2,3,4 or a set of any other objects such as letters a, b, c, d, two types of
questions may rise such as: how many ways can we arrange the numbers 1,2,3,4 or the objects a, b, c, d,
where in each arrangement, each number or object appear not more than once? How many ways can we
arrange these numbers or objects where any of the numbers or objects may appear more than once in
any arrangement? To be able to answer these two questions, we need to learn permutation with distinct
and indistinct objects.
And the formula for calculating a number of permutations of distinct objects as defined above is
generally given by
𝑛!
𝑃𝑛𝑟 =
(𝑛 − 𝑟)!
Where,
0! = 1
Example 1.1
i) 𝑃53
ii) 𝑃𝑛0
iii) 𝑃𝑛1
iv) 𝑃𝑛𝑛
Solutions 1.1
Example 1.2
In a race of 20 runners, give the number of ways the first place finisher can be given a gold medal,
the second place finisher can be given a silver medal and the third place finisher can be given a
bronze medal provided that not more than one contestants come out for each place.
Solution 1.2
This is about finding the number of ways the three medals may be won by only three different
contestants out of 20. It is about a number of ways of selecting (or arranging) 3 out of 20 in an
ordered way and it will be done as:
3 20! 20∗19∗18∗17!
𝑃20 = (20−3)! = = 20 ∗ 19 ∗ 18 = 6 840
17!
So, there are 6 840 ways the first place finisher can be given a gold medal, the second place finisher
can be given a silver medal and the third place finisher can be given a bronze medal out of 20
contestants.
Example 1.3
Give the number of ordered arrangements for three balls of which one is blue in colour, the other is
red and the other third one is brown.
Solution 1.3
3! 3! 3 ∗ 2 ∗ 1
𝑃33 = = = = 3 ∗ 2 ∗ 1 = 6 𝑜𝑟𝑑𝑒𝑟𝑒𝑑 𝑎𝑟𝑟𝑎𝑛𝑔𝑒𝑚𝑒𝑛𝑡𝑠
(3 − 3)! 0! 1!
Under permutation with indistinct objects, we will look at the number of ways we can arrange 𝑟 objects
of the available 𝑛 objects and assume that an object in the arrangements may appear more than once
(may be repeated) and that in this way it is also possible to have 𝑟 > 𝑛.
Therefore, the number of permutations of r objects out of n distinct objects with repetition allowed is
given by
𝑃𝑛𝑟 = 𝑛𝑟
Suppose we are to permute n objects in which 𝑛1 objects is the repetition of one object, 𝑛2 is the
number another object is repeated… and 𝑛𝑘 is the number of appearances for one and the same other
object. In this way, the number of ways we can permute these n objects is given by
𝑛 ,𝑛2 ,…,𝑛𝑘 𝑛!
𝑃𝑛 1 =
(𝑛1 !)(𝑛2 !)(𝑛3 !) … (𝑛𝑘 !)
Example 1.4
Find the number of distinct permutations that can be made from the characters of the following words
i) FLORIDA
ii) MISSISSIPPI
Solution 1.4
i) Since there are no repeated characters in the word FLORIDA, we solve this exercise by
finding the permutation of 7 distinct objects:
7! 7!
𝑃77 = = = 7! = 5040
(7 − 7)! 0!
ii) In the word MISSISSIPPI, the letter M appears 1 time, I appears 4 times, S appears 4 times
and P appears 2 times, therefore the number of distinct permutations will be determined by
1,4,4,2 11! 11 ∗ 10 ∗ 9 ∗ 8 ∗ 7 ∗ 6 ∗ 5 ∗ 4! 11 ∗ 10 ∗ 9 ∗ 8 ∗ 7 ∗ 6 ∗ 5
𝑃11 = = =
1! ⋅ 4! ⋅ 4! ⋅ 2! 1! ⋅ 4! ⋅ 4! ⋅ 2! 4! ⋅ 2!
11 ∗ 10 ∗ 9 ∗ 8 ∗ 7 ∗ 6 ∗ 5
= = 11 ∗ 5 ∗ 9 ∗ 2 ∗ 7 ∗ 5 = 34 650
4∗3∗2∗1∗2∗1
Example 1.5
Solution 1.5
Forming strings of 6 characters out of a set with 4 characters definitely means that there will be
repetitions of characters; therefore, the number of permutations will be calculated by
𝑃46 = 46 = 4096
Combinations
Unlike permutation, combination is the selection of 𝑟 distinct objects from the set of 𝑛 distinct objects
but where the order in which the 𝑟 objects are arranged is not considered.
The number of combinations of 𝑟 distinct objects chosen from 𝑛 distinct objects is calculated by
𝑛!
𝐶𝑛𝑟 = , 𝑤ℎ𝑒𝑟𝑒 𝑟 ≤ 𝑛
𝑟! (𝑛 − 𝑟)!
The relationship between combinations and permutations is given by
𝑃𝑛𝑟
𝐶𝑛𝑟 =
𝑟!
Example 2.1
i) Evaluate 𝐶73
ii) A committee of 4 students is to be formed from a selected group consisting of 5 freshmen
and 6 sophomores.
a) How many committees of 2 freshmen and 2 sophomores are possible?
Solution 2.1
7! 7! 7∗6∗5∗4! 7∗6∗5
i) 𝐶73 = 3!(7−3)! = 3!⋅4! = = 3∗2∗1 = 7 ∗ 5 = 35
3!⋅4!
5! 6 5! 6!
ii) a) 𝐶52 ⋅ 𝐶62 = 2!(5−2)! ⋅ 2!(6−2)! = 2!⋅3! ⋅ 2!⋅4! = 5 ∗ 2 ∗ 3 ∗ 5 = 150
5! 6! 5! 6!
b) 𝐶51 ⋅ 𝐶63 = 1!(5−1)! ⋅ 3!(6−3)! = 1!⋅4! ⋅ 3!⋅3! = 5 ∗ 5 ∗ 4 = 100
5! 6! 5! 6! 5! 6! 5! 6!
c) 𝐶53 ⋅ 𝐶61 + 𝐶54 ⋅ 𝐶60 = 3!(5−3)! ⋅ 1!(6−1)! + 4!(5−4)! ⋅ 0!(6−0)! = 3!⋅2! ⋅ 1!⋅5! + 4!⋅1! ⋅ 0!⋅6!
= 5 ∗ 2 ∗ 6 + 5 ∗ 1 = 60 + 5 = 65
As multiplying a binomial expression by itself 2 to 3 times is much easier to solve using some
distributive property, multiplying it by itself several more times would be cumbersome and take a lot
more of time; that is the difficulty the binomial theorem comes in to make simple.
Theorem
Given that 𝑥 and 𝑦 are the two terms of the binomial expression and 𝑛 a nonnegative integer,
multiplying a binomial 𝑥 + 𝑦 by itself 𝑛 times can be represented by
The combinatorial expression 𝐶𝑛𝑘 is in this case called a binomial coefficient because this number will
occur as a coefficient in the simplification (expansion) of the binomial expression (𝑥 + 𝑦)𝑛 .
Example 2.2
(𝑥 + 5)5
Solution 2.2
What we are just from doing with simplifying (𝑥 + 5)5 is called binomial expansion.
Here, we will look at three identities involving combinations that are most useful in solving/
simplifying combinatorial expressions. We will also look at their proofs.
∑ 𝐶𝑛𝑘 = 2𝑛
𝑘=0
This is the same as having the 𝑥 and 𝑦 terms equated to 1 in the binomial expression (𝑥 + 𝑦)𝑛 .
Proof:
𝑛 𝑛
∑(−1)𝑘 𝐶𝑛𝑘 = 0
𝑘=0
This is the same as having the 𝑥 and 𝑦 terms equated to -1 and 1 respectively in the binomial
expression (𝑥 + 𝑦)𝑛 .
∑ 2𝑘 𝐶𝑛𝑘 = 3𝑛
𝑘=0
This is the same as having the 𝑥 and 𝑦 terms equated to 2 and 1 respectively in the binomial
expression (𝑥 + 𝑦)𝑛 .
Proof:
𝑛 𝑛 𝑛
𝑛 𝑛
3 = (2 + 1) = ∑ 𝐶𝑛𝑘 2𝑘 1𝑛−𝑘 = ∑ 𝐶𝑛𝑘 2𝑘 = ∑ 2𝑘 𝐶𝑛𝑘
𝑘=0 𝑘=0 𝑘=0
The Pascal’s triangle is a triangle where for the determination of the values to be composed in the
triangle we have: the 𝑛𝑡ℎ row of the triangle consists of all the values 𝐶𝑛𝑟 , where 𝑛 ≥ 0 and 0 ≤ 𝑟 ≤ 𝑛.
The triangle will therefore be given by
𝑅𝑜𝑤
1 0
1 1 1
2 11 2
1
3 3 1 3
1 4 6 4 1 4
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
When we observe the Pascal’s triangle figure, we will conclude that the outer edges are ones (1s) and
that is true. Therefore, the Pascal’s identity is a formula that helps us calculate any element that is not
on the outer edge of the triangle and this formula is given by
𝑘−1 𝑘
𝐶𝑛𝑘 = 𝐶𝑛−1 + 𝐶𝑛−1
Where, 1 ≤ 𝑘 ≤ 𝑛 − 1
Example 4.1
Use the Pascal’s identity to calculate the Pascal’s triangle values in row 𝑛 = 2
We have 𝐶00 = 1 as the only value where 𝑛 = 0, 𝐶10 = 1 and 𝐶11 = 1 as values where 𝑛 = 1.
In this subsection, we will look at Vandermonde’s identity and other identities that involve combination
coefficients.
Vandermonde’s Identity
It is the identity which was discovered by the Mathematician Alexandre-Theophile Vandermonde in the
18𝑡ℎ century and we will look at other identities which were formed using the Vandermonde’s identity.
Other Identities
For a nonnegative integer n, we have
𝑛
𝑛
𝐶2𝑛 = ∑(𝐶𝑛𝑘 )2
𝑘=0
Proof:
Using Vandermonde’s identity where 𝑚 = 𝑟 = 𝑛, we have
Theorem
𝑛
𝑟+1
𝐶𝑛+1 = ∑ 𝐶𝑗𝑟
𝑗=𝑟
Example 5.1
Solution 5.1
𝑛+1 𝑛+1−1 𝑛 𝑛
𝑟+1
𝐶𝑛+1 = ∑ 𝑟
𝐶𝑘−1 = ∑ 𝑟
𝐶𝑘−1 = ∑ 𝑟
𝐶𝑘−1 = ∑ 𝐶𝑗𝑟
𝑘=𝑟+1 𝑘−1=𝑟+1−1 𝑘−1=𝑟 𝑗=𝑟
The number of ways we can have the combinations of r objects taken from the set with n distinct
objects where repetition is allowed can be calculated using the formula
𝑟
(𝑟 + 𝑛 − 1)! (𝑟 + 𝑛 − 1)! 𝑛−1
𝐶𝑟+𝑛−1 = = = 𝐶𝑟+𝑛−1
𝑟! (𝑟 + 𝑛 − 1 − 𝑟)! 𝑟! (𝑛 − 1)!
How many ways can six cookies be chosen from the shop with four different kinds of cookies assuming
that only the type of cookie, and not the individual cookies or the order in which they are chosen,
matters?
Solution 6.1
6
9! 9 ∗ 8 ∗ 7 ∗ 6! 9 ∗ 8 ∗ 7
𝐶4+6−1 = 𝐶96 = 𝐶93 = = = = 84 𝑤𝑎𝑦𝑠
3! (9 − 3)! 3! ∗ 6! 3∗2∗1
Example 6.2
How many ways are there to place 10 indistinct balls into eight distinct bins?
Solution 6.2
10 10
17!
𝐶8+10−1 = 𝐶17 = = 19 448 𝑤𝑎𝑦𝑠
10! (17 − 10)!