Sub topic 3
Permutations: When Order Matters
Prerequisites and the basic idea
Assume you can simplify fractions, use factorial notation, and translate a word problem into a counting question. A permutation is an arrangement in which order matters.
For example, choosing Alex, Blair, and Casey for first, second, and third place is different from choosing Alex, Casey, and Blair. The same three people appear, but their positions change.
The multiplication principle says that if a process has several stages, multiply the number of choices at each stage. If 5 runners compete for first, second, and third place, there are:
- 5 choices for first place.
- 4 remaining choices for second place.
- 3 remaining choices for third place.
Therefore, the number of rankings is 5 × 4 × 3 = 60.
The permutation formula
A permutation of r items selected from n distinct items is written as nPr. When items cannot be reused,
nPr = n! / (n − r)!
Here, n is the total number of available items, and r is the number placed in order. The factorial symbol means a product of consecutive positive integers. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
For the runners:
5P3 = 5! / 2! = (5 × 4 × 3 × 2 × 1) / (2 × 1) = 60
The denominator removes the choices that would occur after the three positions have been filled.
import math
n = 5
r = 3
print(math.perm(n, r)) # 60
print(math.factorial(n) // math.factorial(n - r)) # 60If every item is used, the formula becomes nPn = n!. Thus, 6 distinct books arranged on a shelf can be placed in 6! = 720 ways.
Recognizing a permutation
Look for positions, ranks, labels, or roles. These words usually signal that order matters:
- first, second, and third
- president, vice president, and treasurer
- a three-digit code
- seats in a row
- arranging books on a shelf
A useful test is to ask: “Would switching two selected items create a new outcome?” If yes, use a permutation or a direct multiplication count.
| Situation | Does order matter? | Typical count |
|---|---|---|
| Select 3 students for gold, silver, and bronze | Yes | 10P3 |
| Select 3 students for a committee | No | 10C3 |
| Arrange 4 books on a shelf | Yes | 4! |
A committee of three does not have ranked positions, so changing the order of its members does not create a new committee. That is a combination problem, not a permutation problem.
A GRE-style setup
A password uses four different letters selected from the seven letters A through G, with no repetition. The first position has 7 choices, the second has 6, the third has 5, and the fourth has 4. Therefore:
7P4 = 7 × 6 × 5 × 4 = 840
If repetition is allowed, the count changes to 7 × 7 × 7 × 7 = 7⁴. Always check whether an item can be reused.
Visual decision process
Common errors and checks
A frequent error is counting the same outcome multiple times. If a problem asks for a group with no positions or ranks, arranging the group members in different orders does not create new outcomes.
Another error is ignoring restrictions. If a committee member cannot hold a certain role, count the allowed choices at that stage rather than using the unrestricted formula.
For a reasonableness check, compare the result with nearby powers or factorials. Since 7P4 = 7 × 6 × 5 × 4, the answer must be less than 7⁴ and much less than 7!.
Exercise
How many ways can 8 distinct people fill the roles of chair, secretary, and treasurer?
Show answer
The roles are different, so order matters. The count is 8P3 = 8 × 7 × 6 = 336.