Permutations
Every question with a fully worked solution.
- Permutations - Video - Permutations Made Easy- Counting Using Permutations Watch
Theory
A permutation is an ordered arrangement of objects. The number of ways to choose and order \(r\) objects from \(n\) different objects is \({}^{n}P_{r}=\dfrac{n!}{(n-r)!}\). This Year 11 Mathematics Extension 1 page covers using and solving with \({}^{n}P_{r}\), arrangements with restrictions, and circular arrangements \((n-1)!\), including people kept together, apart or alternating around a table.
A permutation is an arrangement of objects in which order matters: first, second and third place, the digits of a number, the blocks of a tower, the seats in a row. Choosing \(r\) objects from \(n\) different objects and putting them in order is an ordered selection; the number of ways is written \({}^{n}P_{r}\).
By the multiplication principle, the first position has \(n\) choices, the second \(n-1\), and the \(r\)th position \(n-r+1\). Multiplying and writing the product with factorials (see Factorial Notation):
\({}^{n}P_{r}=n(n-1)\times\dots\times(n-r+1)=\dfrac{n!}{(n-r)!}\)
Arranging all \(n\) objects gives \({}^{n}P_{n}=\dfrac{n!}{0!}=n!\). Choosing none gives \({}^{n}P_{0}=\dfrac{n!}{n!}=1\). \({}^{n}P_{r}\) counts selections without repetition; if objects can be reused, each position has \(n\) choices and the count is \(n^r\).
Restrictions. Place the restricted objects first (often with a smaller \({}^{m}P_{k}\)), then arrange the rest. Objects that must be together are treated as one block, multiplied by the orders inside the block; objects that must be apart are counted as total minus together.
Circular arrangements. Around a round table only the positions of the people relative to each other matter: rotating everyone one seat gives the same arrangement. Each circular arrangement matches \(n\) different line arrangements, so \(n\) different people can sit around a circle in \(\dfrac{n!}{n}=(n-1)!\) ways. Equivalently, seat one person anywhere to fix the circle, then fill the other \(n-1\) seats like a line.
Ordered selections of \(r\) objects from \(n\) different objects:
\(n\) different objects around a circle:
| Situation | Number of ways |
|---|---|
| Order \(r\) of \(n\) different objects, no repeats | \({}^{n}P_{r}=\dfrac{n!}{(n-r)!}\) |
| Arrange all \(n\) in a line | \(n!\) |
| \(r\) positions, repetition allowed | \(n^r\) |
| Arrange \(n\) around a circle | \((n-1)!\) |
| Two objects together | \(2\times\) (arrangements with the block as one item) |
| Two objects apart | total \(-\) together |
| \(k\) of each group alternating around a circle | \((k-1)!\times k!\) |
How to count arrangements
- Decide whether order matters (a permutation) and whether objects may be repeated (\(n^r\)).
- Place the restricted objects first, e.g. two people who must face the front, or a particular person who must win a prize. Count these placements, often with \({}^{m}P_{k}\).
- Arrange the rest in the remaining positions: \(k!\) for \(k\) objects in \(k\) places.
- Together: make a block, count it as one item, multiply by the orders inside. Apart: total minus together.
- Multiply the stages (add separate cases) and finish with a \(\therefore\) statement.
Circular arrangements
- Fix the circle: use \((n-1)!\) for \(n\) people, or seat one particular person first and fill the other seats like a line.
- Alternating: seat one group around the table in \((k-1)!\) ways, then the other group in the \(k\) gaps in \(k!\) ways.
- Neighbour restrictions: seat the person whose neighbours are restricted first, then fill the two seats beside them, then the rest.
(ii) A club of \(12\) members elects a president, a secretary and a treasurer. No member can hold two positions. In how many ways can this be done?
(i) Use \({}^{n}P_{r}=\dfrac{n!}{(n-r)!}\):
| \({}^{9}P_{3}\) | \(=\) | \(\dfrac{9!}{6!}\) |
| \(\) | \(=\) | \(9\times8\times7\) |
| \(\) | \(=\) | \(504\) |
(ii) The three positions are different, so order matters: an ordered selection of \(3\) from \(12\).
| \({}^{12}P_{3}\) | \(=\) | \(12\times11\times10\) |
| \(\) | \(=\) | \(1320\) |
\(\therefore\) (i) \(504\) (ii) \(1320\) ways
(ii) Solve \({}^{7}P_{r}=840\).
(i) Write \({}^{n}P_{2}\) as a product:
| \(n(n-1)\) | \(=\) | \(56\) |
| \(n^2-n-56\) | \(=\) | \(0\) |
| \((n-8)(n+7)\) | \(=\) | \(0\) |
\(n=8\) or \(n=-7\), but \(n\) is a positive integer.
\(\therefore n=8\)
(ii) Write \({}^{7}P_{r}\) using factorials:
| \(\dfrac{7!}{(7-r)!}\) | \(=\) | \(840\) |
| \((7-r)!\) | \(=\) | \(\dfrac{5040}{840}\) |
| \((7-r)!\) | \(=\) | \(6=3!\) |
| \(7-r\) | \(=\) | \(3\) |
| \(r\) | \(=\) | \(4\) |
Check: \({}^{7}P_{4}=7\times6\times5\times4=840\)
\(\therefore r=4\)
(i) there are no restrictions?
(ii) Mia and Noah sit next to each other?
(iii) Mia and Noah do not sit next to each other?
(i) Circular arrangement of \(7\) people:
| \((7-1)!\) | \(=\) | \(6!\) |
| \(\) | \(=\) | \(720\) |
(ii) Treat Mia and Noah as one block, so \(6\) items in a circle: \((6-1)!=5!\) ways, and \(2\) orders inside the block.
| \(\text{Together}\) | \(=\) | \(2\times5!\) |
| \(\) | \(=\) | \(240\) |
(iii) Total minus together:
| \(\text{Not together}\) | \(=\) | \(720-240\) |
| \(\) | \(=\) | \(480\) |
\(\therefore\) (i) \(720\) (ii) \(240\) (iii) \(480\)
(i) In how many ways can this be done?
(ii) In how many of these ways does Sam (a man) not sit next to Tia (a woman)?
(i) Seat the \(5\) women around the table: \((5-1)!=4!\) ways. The \(5\) men fill the \(5\) gaps between the women: \(5!\) ways.
| \(\text{Number}\) | \(=\) | \(4!\times5!\) |
| \(\) | \(=\) | \(24\times120\) |
| \(\) | \(=\) | \(2880\) |
(ii) Seat Tia first; this fixes the circle. The other \(4\) women fill the other \(4\) women's seats: \(4!\) ways.
The two men's seats beside Tia cannot hold Sam, so Sam takes one of the other \(3\) men's seats: \(3\) ways. The other \(4\) men fill the remaining \(4\) seats: \(4!\) ways.
| \(\text{Number}\) | \(=\) | \(4!\times3\times4!\) |
| \(\) | \(=\) | \(24\times3\times24\) |
| \(\) | \(=\) | \(1728\) |
Check: Sam next to Tia gives \(4!\times2\times4!=1152\), and \(1152+1728=2880\).
\(\therefore\) (i) \(2880\) (ii) \(1728\)
Common pitfalls
Frequently asked questions
What is a permutation?
A permutation is an arrangement in which order matters. The number of ways to choose \(r\) objects from \(n\) different objects and arrange them in order is \({}^{n}P_{r}\).
What is the formula for nPr?
\({}^{n}P_{r}=\dfrac{n!}{(n-r)!}=n(n-1)\times\dots\times(n-r+1)\), a product of \(r\) consecutive whole numbers starting at \(n\). For example \({}^{11}P_{3}=11\times10\times9=990\).
Why is the number of circular arrangements (n-1)!?
Rotating a circular arrangement does not change it, and each circle can be read as a line starting from any of the \(n\) people. So the \(n!\) line arrangements group into sets of \(n\), giving \(\dfrac{n!}{n}=(n-1)!\).
When do you use nPr and when do you use n to the power r?
Use \({}^{n}P_{r}\) when each object can be used at most once (no repetition). Use \(n^r\) when every one of the \(r\) positions can be any of the \(n\) options (repetition allowed).
How do you seat people alternately around a round table?
Seat one group first around the table, then put the other group in the gaps. For \(3\) men and \(3\) women: \((3-1)!\times3!=2\times6=12\) ways.