Ordered arrangements. n! and nPr formulas.
Deep-dive lesson - accessible entry point but dense material. Use worked examples and spaced repetition.
If you’re assigning 1st/2nd/3rd place, building a password, or seating people in labeled chairs, you’re not just choosing items—you’re arranging them. That “order matters” twist is exactly what permutations count.
A permutation is an ordered arrangement. Arranging all n distinct items gives n!. Choosing and ordering k distinct items from n (no repeats) gives n P k = n!/(n−k)!. Use permutations when positions are distinct and swapping items creates a new outcome.
A permutation is an ordered arrangement of items. The central question permutations answer is:
How many outcomes are there when the positions matter?
You already know the multiplication rule: if you make a sequence of choices and each step has a certain number of options, you multiply those counts.
Permutations are what you get when those choices are:
Consider the two-letter sequence made from {A, B, C} without repeats.
That is the signature of permutations.
We’ll build both from the same counting principle: multiply the number of choices available at each position.
We’ll derive the formulas rather than memorizing them.
Suppose you have n distinct items and you want to arrange all of them in a line.
Think in positions:
By the multiplication rule, the total number of arrangements is:
n · (n − 1) · (n − 2) · … · 2 · 1
That product is called n factorial, written n!.
For integer n ≥ 1:
n! = ∏ᵢ₌₁ⁿ i = 1 · 2 · 3 · … · n
And by convention:
0! = 1
A “full permutation of 0 items” means: how many ways to arrange nothing? There is exactly one empty arrangement.
Also, the recursion for factorials works cleanly:
n! = n · (n − 1)!
If we set n = 1:
1! = 1 · 0!
But 1! = 1, so 0! must be 1.
The 6 arrangements of (A, B, C) are:
ABC, ACB, BAC, BCA, CAB, CBA.
This already grows fast; factorial growth is one reason permutation counts get large quickly.
Factorials often simplify when you divide them:
\( \frac{n!}{(n−1)!} \)
Work it out by expansion:
n! = n · (n − 1) · (n − 2) · … · 1
(n − 1)! = (n − 1) · (n − 2) · … · 1
So:
n! / (n − 1)! = n
This “cancellation idea” is the backbone of the n P k formula you’ll meet next.
Use n! when:
If you’re not using all items (only k of them), you need k-permutations instead.
How many ordered sequences of length k can you form from n distinct items, without replacement?
Example contexts:
Imagine filling k positions one by one.
Multiply them:
n P k = n · (n − 1) · (n − 2) · … · (n − k + 1)
This is already a perfectly good formula.
Factorials let us write that product compactly.
Start with n!:
n! = n · (n − 1) · (n − 2) · … · (n − k + 1) · (n − k) · (n − k − 1) · … · 2 · 1
Notice the part we want (the first k factors) is:
n · (n − 1) · … · (n − k + 1)
The “extra tail” we don’t want is:
(n − k) · (n − k − 1) · … · 1 = (n − k)!
So divide to cancel the tail:
n P k = \( \frac{n!}{(n − k)!} \)
Suppose n = 5 and k = 3.
Direct product:
5 P 3 = 5 · 4 · 3 = 60
Factorial form:
5!/(5 − 3)! = 5!/2! = (120)/2 = 60
Matches.
n P n = n!/(n − n)! = n!/0! = n!/1 = n!
So k-permutation generalizes full permutation.
n P 0 = n!/(n − 0)! = n!/n! = 1
There is exactly one sequence of length 0: the empty sequence.
Use this to avoid the most common confusion.
| Situation | Replacement? | Order matters? | Tool |
|---|---|---|---|
| Arrange all n distinct items | No | Yes | n! |
| Choose and order k from n | No | Yes | n P k = n!/(n−k)! |
| Choose k from n (order irrelevant) | No | No | (This is combinations; unlocked next) |
| Choose with repeats allowed | Yes | Depends | Different formulas (not this node) |
Another way to see the structure:
That viewpoint leads naturally to combinations later:
n P k = (number of k-element sets) · (number of ways to order k items)
And “number of ways to order k items” is k!.
So you’ll soon see the relationship:
n P k = (n C k) · k!
Don’t worry about n C k yet—just remember: permutations count ordered outcomes; combinations will count unordered ones.
Most permutation mistakes come from translating the story incorrectly. A reliable workflow:
If 10 runners compete and you award gold/silver/bronze, you’re filling 3 distinct ranks:
10 P 3 = 10 · 9 · 8
If you pick a chair, secretary, and treasurer from 12 people:
12 P 3
If 7 people sit in a row of 7 seats:
7!
If only 4 of them sit (4 seats to fill) from 7 people:
7 P 4
Often the only difference between a permutation problem and a combination problem is whether we care about the order.
Take the same three winners from 10 runners:
The relationship:
n P k = (n C k) · k!
Interpretation:
Permutations aren’t just a counting trick.
Factorials explode:
| n | n! |
|---|---|
| 5 | 120 |
| 8 | 40,320 |
| 10 | 3,628,800 |
| 15 | 1,307,674,368,000 |
So, whenever you see n! or n P k, it’s worth pausing to ask: is the model correct? Are repeats allowed? Are we accidentally counting the same outcome multiple times?
That careful translation skill is the main thing this node is training.
A race has 9 runners. How many ways can gold, silver, and bronze be awarded (no ties)?
Identify positions: gold, silver, bronze are 3 distinct ranks ⇒ order matters.
No runner can take two medals ⇒ without replacement.
Set n = 9, k = 3.
Use k-permutations: 9 P 3 = 9 · 8 · 7.
Compute:
9 · 8 · 7 = 72 · 7 = 504.
Insight: Any time roles are labeled (1st/2nd/3rd), you’re arranging people into positions, so permutations apply.
How many different orders can 6 distinct books be placed on a shelf?
All 6 books are used, and left-to-right order matters.
This is a full permutation of n = 6 distinct items.
Use factorial: 6! = 6 · 5 · 4 · 3 · 2 · 1.
Compute stepwise:
6 · 5 = 30
30 · 4 = 120
120 · 3 = 360
360 · 2 = 720
720 · 1 = 720.
Insight: When you arrange all n distinct items, the count is exactly the product of remaining choices at each position: n!.
Compute 12 P 5 and simplify using factorial cancellation.
Use the formula: 12 P 5 = 12!/(12 − 5)! = 12!/7!.
Expand only what’s needed:
12! = 12 · 11 · 10 · 9 · 8 · 7!
7! = 7!
Cancel 7!:
12!/7! = 12 · 11 · 10 · 9 · 8.
Multiply:
12 · 11 = 132
132 · 10 = 1320
1320 · 9 = 11880
11880 · 8 = 95040.
Insight: Factorial form is less about computing gigantic factorials and more about cancellation—expand just enough to cancel (n−k)!.
A permutation counts ordered outcomes: swapping items creates a new result.
Full permutations of n distinct items: n! = 1 · 2 · … · n, with 0! = 1.
k-permutations (ordered selections without replacement): n P k = n · (n − 1) · … · (n − k + 1).
Equivalent compact form: n P k = n!/(n − k)! (use cancellation to compute).
Sanity checks: n P n = n!, and n P 0 = 1.
Translate word problems by identifying labeled positions (roles/ranks/seats) and whether repeats are allowed.
Permutations connect to combinations via: n P k = (n C k) · k! (order = group × arrangements).
Treating an unordered selection as ordered (using n P k when order doesn’t matter).
Forgetting “without replacement” and accidentally allowing repeats in the count.
Computing n! and (n−k)! separately instead of canceling first, leading to huge numbers or arithmetic errors.
Mixing up k and n (e.g., using k P n) or allowing k > n without noticing the model is impossible.
A club has 11 members. In how many ways can it choose a president, vice president, and secretary (three different people)?
Hint: These are 3 distinct roles, so order matters. No person can hold two roles.
n = 11, k = 3.
11 P 3 = 11 · 10 · 9 = 990.
How many 4-letter sequences can you form from the letters {A, B, C, D, E, F} if no letter can repeat?
Hint: You are filling 4 positions from 6 distinct letters without replacement.
n = 6, k = 4.
6 P 4 = 6 · 5 · 4 · 3 = 360.
(Equivalently, 6!/2! = 720/2 = 360.)
Simplify and compute: 15 P 6.
Hint: Write 15 P 6 = 15!/9! and expand only down to 10.
15 P 6 = 15!/9!.
15! = 15 · 14 · 13 · 12 · 11 · 10 · 9!
So 15!/9! = 15 · 14 · 13 · 12 · 11 · 10.
Compute:
15 · 14 = 210
210 · 13 = 2730
2730 · 12 = 32760
32760 · 11 = 360360
360360 · 10 = 3,603,600.
Next node: Combinations
Related ideas you’ll likely use soon: