Permutations
Counting Ordered Arrangements — Where Every Position Matters
1. What Is a Permutation?
A permutation is an ordered arrangement of objects. The crucial idea is that order matters.
Consider the set $\{A, B, C\}$. How many ways can we line up all three letters?
| # | Arrangement |
|---|---|
| 1 | A B C |
| 2 | A C B |
| 3 | B A C |
| 4 | B C A |
| 5 | C A B |
| 6 | C B A |
There are 6 permutations. Notice that ABC and BAC contain the same letters but are counted separately because the order is different.
2. The Factorial Function
The factorial of a non-negative integer $n$, written $n!$, is the product of all positive integers from $1$ up to $n$:
It counts the number of ways to arrange $n$ distinct objects in a line.
Common Factorial Values
| $n$ | $n!$ | Calculation |
|---|---|---|
| 0 | 1 | (by definition) |
| 1 | 1 | $1$ |
| 2 | 2 | $2 \times 1$ |
| 3 | 6 | $3 \times 2 \times 1$ |
| 4 | 24 | $4 \times 3 \times 2 \times 1$ |
| 5 | 120 | $5 \times 4 \times 3 \times 2 \times 1$ |
| 6 | 720 | $6!$ |
| 10 | 3,628,800 | $10!$ |
| 20 | 2,432,902,008,176,640,000 | $20!$ — over 2 quadrillion! |