Lesson 8 / 13 · 10 min read
Permutations & Combinations
Counting arrangements when order matters — and when it doesn't.
Factorials
n!=n⋅(n−1)⋅(n−2)⋯2⋅1
By convention 0!=1. Examples: 5!=120, 4!=24.
A factorial counts the ways to arrange n distinct items in a row.
Permutations — when order matters
A permutation counts ordered arrangements. How many ways can you arrange r items chosen from n?
P(n,r)=(n−r)!n!
Example. A class of 8 students picks a president, vice president, and treasurer (three different roles). How many ways?
P(8,3)=5!8!=8⋅7⋅6=336
Combinations — when order doesn't matter
A combination counts unordered selections. How many ways to choose r items from n, ignoring order?
C(n,r)=(rn)=r!(n−r)!n!
The extra r! in the denominator divides out the duplicates created by reordering the chosen group.
Example. Same class of 8 picks a 3-person planning committee (no distinct roles).
(38)=3!⋅5!8!=68⋅7⋅6=56
That's 336/6=56 — exactly the permutation count divided by 3!=6, the number of ways to reorder 3 chosen people.
Quick test: order or no order?
- "How many license plates?" → spots matter → permutation.
- "How many 5-card poker hands?" → cards have no order → combination.
- "How many ways to seat 5 people in 5 chairs?" → permutation (5!=120).
- "How many 3-topping pizzas from 10 toppings?" → combination.
Useful identities
(0n)=(nn)=1 (rn)=(n−rn) (1n)=n
Key takeaways
- Permutations count ordered arrangements; combinations count unordered selections.
- Combinations divide out the r! reorderings of the chosen group.
- Decide by asking: "does swapping two items give a different outcome?"