Sub topic 3
Permutations: Arrangements When Order Matters
Prerequisites and the Core Idea
Assume you can simplify factorial-style products and translate a word problem into conditions.
A permutation is an arrangement in which order matters. For example, selecting A, B, and C for first, second, and third places is different from selecting B, A, and C. The positions create different outcomes.
If you fill \(r\) ordered positions from \(n\) distinct objects without repetition:
- The first position has \(n\) choices.
- The second position has \(n-1\) choices.
- The third position has \(n-2\) choices.
- Continue until \(r\) positions are filled.
By the multiplication principle, the number of arrangements is
\[ {}^nP_r=n(n-1)(n-2)\cdots(n-r+1). \]
Using factorial notation,
\[ {}^nP_r=\frac{n!}{(n-r)!}. \]
The denominator removes the factorial factors belonging to the unused objects.
Worked Example
In how many ways can 7 runners receive gold, silver, and bronze medals?
The three medal positions are different, so order matters. There are 7 choices for gold, 6 remaining choices for silver, and 5 remaining choices for bronze:
\[ {}^7P_3=7\cdot6\cdot5=210. \]
Thus, 210 medal results are possible.
The same calculation using factorials is
\[ {}^7P_3=\frac{7!}{(7-3)!} =\frac{7!}{4!} =7\cdot6\cdot5=210. \]
If all \(n\) objects are arranged, then \(r=n\), so
\[ {}^nP_n=\frac{n!}{0!}=n!. \]
Remember that \(0!=1\).
import math
n, r = 7, 3
arrangements = math.perm(n, r)
formula_value = math.factorial(n) // math.factorial(n - r)
print(arrangements) # 210
print(formula_value) # 210Choosing the Correct Model
Ask whether swapping two selected objects creates a new outcome.
| Question | Method |
|---|---|
| Are distinct positions, ranks, or roles involved? | Permutation |
| Is the result only a group, with no internal order? | Combination, covered later |
For example, choosing a president, secretary, and treasurer is a permutation because the roles differ. Choosing three committee members is not a permutation if every committee has the same status.
A useful interpretation is
\[ {}^nP_r={n\choose r}r!. \]
First choose the \(r\) objects. Then arrange those selected objects in \(r!\) orders. This identity explains why permutations count both selection and order.
Exercise
How many four-digit codes can be formed from the digits 1 through 8 if no digit can be repeated?
Show answer
The positions are ordered, so use 8P4 = 8 × 7 × 6 × 5 = 1,680.