Lecture 4
Lecture 4
4: Permutations
In this section we study a useful formula for the number of permutations of n objects taken k at a
time. It is really just a special application of the multiplication principle, but the phenomenon occurs
often enough in reality that it is useful to pull out the general principles and create a special name and
formula for this this situation.
Example Alan, Cassie, Maggie, Seth and Roger are friends who want to take a photograph with three
of the five friends in it.
Alan (who likes to be thorough) makes a complete list of all possible ways of lining up 3 out of the 5
friends for a photo as follows:
AM C AM S AM R ACS ACR
ACM ASM ARM ASC ARC
CAM M AS M AR CAS CAR
CM A M SA M RA CSA CRA
M AC SAM RAM SAC RCA
M CA SM A RM A SCA RAC
ASR M SR M CR M CS CRS
ARS M RS M RC M SC CSR
SAR SM R RM C CM S RCS
SRA SRM RCM CSM RSC
RSA M RS CRM SM C SCR
RAS M SR CM R SCM SRC
Alan has just attended a finite math lecture on the multiplication principle and suddenly realizes that
their may be an easier way to count the possible photographs.
He reckons he has 5 choices for the position on the left, and
once he’s chosen who should stand on the left, he will have 4 choices for the position in the middle
and once he fills both of above positions, he has 3 choices for the one on the right.
This gives a total of 5 × 4 × 3 = 60 possibilities.
Alan has listed all Permutations of the five friends taken 3 at a time.
The number of permutations of 5 objects taken 3 at a time has a special symbol:
P (5, 3)
2. Repetitions are not allowed or the same element may not appear more than once in an arrangement.
(In the example above, the photo AAA is not possible).
1
3. the order in which the elements are selected or arranged is significant. (In the above example, the
photographs AMC and CAM are different).
The number of such permutations is denoted by the symbol, P (n, k).
Example Calculate P (10, 3), the number of photographs of 10 friends taken 3 at a time.
Example Calculate P (6, 4), the number of photographs of 6 friends taken 4 at a time.
P (6, 4) = 6 · 5 · 4 · 3.
We can use the same principles that Alan did to find a general formula for the number of permutations
of n objects taken k at a time, which follows from an application of the multiplication principle:
P (n, k) = n × (n − 1) × (n − 2) × · · · × (n − k + 1).
Note that there are k consecutive numbers on the right hand side.
Example In how many ways can you choose a President, secretary and treasurer for a club from 12
candidates, if each candidate is eligible for each position, but no candidate can hold 2 positions? Why
are conditions 1, 2 and 3 relevant here?
P (12, 3). Condition 1 is satisfied because we have a single set of 12 candidates for all 3 positions.
Condition 2 is satisfied because no one can hold more than one position. Condition 3 is satisfied
because being president is different than being treasurer or secretary.
Example You have been asked to judge an art contest with 15 entries. In how many ways can you
assign 1 , 2 and 3rd place? (Express your answer as P (n, k) for some n and k and evaluate.)
st nd
P (15, 3) = 15 · 14 · 13 = 2, 730.
Example Ten students are to be chosen from a class of 30 and lined up for a photograph. How many
such photographs can be taken? (Express your answer as P (n, k) for some n and k and evaluate.)
Example In how many ways can you arrange 5 math books on a shelf.
2
P (5, 5) = 5 · 4 · 3 · 2 · 1. Note 5 − 5 = 0 and we stopped at 1.
n!
P (n, k) = .
(n − k)!
Example How many three letter words(including nonsense words) can you make from the letters of the
English alphabet, if letters cannot be repeated? (Express your answer as P (n, k) for some n and k and
evaluate.)
P (26, 3).
3
(This may be clearer if we distinguish the two E’s in the given word, writing it as BE1 E2 R. The 4!
permutations of these letters look like
6! 6! 720
. There are 6 letters in ALPACA and one of them, ’A’ is repeated 3 times. 3!
= 6
= 120
3!
If a set of n objects contains k subsets of objects in which the objects in each subset are identical and
objects in different subsets are not identical, the number of different permutations of all n objects is
n!
,
r1 ! · r2 ! · · · · · rk !
where r1 is the number of objects in the first subset, r2 is the number of objects in the second subset
etc.... Note that for a subset of size 1, we have 1! = 1.
Example How many distinct words(including nonsense words) can be made from rearrangements of
the word
BANANA
6!
. There are 6 letters in BANANA
2! · 3!
and one of them, ’A’ is repeated 3 times
6!
and another B is repeated 2 times. 2!·3! =
720
2·6
= 60
Example How many distinct words(including nonsense words) can be made from rearrangements of
the word
BOOKKEEPER
4
10!
. There are 10 letters in BOOKKEEPER. In alpha-
1! · 3! · 2! · 2! · 1! · 1!
betical order, B ↔ 1, E ↔ 3, K ↔ 2, O ↔ 2, P ↔ 1, R ↔ 1.
Note that the total number of letters is the sum of the multiplicities of
10! 3,628,800
the distinct letters. 1!·3!·2!·2!·1!·1!
= 6·2·2
= 151, 200.
sB
5
As
sB
Example A streetmap of Mathville is given below. You arrive at the Airport at A and wish to take
a taxi to Pascal’s house at P. The taxi driver, being an honest sort, will take a route from A to P with
no backtracking, always traveling south or east.
As
Cs
sV
sP
(b) If you insist on stopping off at the Combinatorium at C, how many routes can the taxi driver
6
take from A to P?
(c) If wish to stop off at both the combinatorium at C and the Vennitarium at V, how many routes
can your taxi driver take?
(d) If you wish to stop off at either C or V(at least one), how many routes can the taxi driver take.
Hence
n(C ∪ V ) = 60 + 70 − 36 = 94
7
Extras
Example (a) Christine, on her morning run, wants to get from point A to point B. How many
routes with no backtracking can she take?
(c) If Christine wants to avoid the Doberman at D, how many routes can she take?