Permutations and combinations
| English | Chinese | Pinyin |
|---|---|---|
| permutation | 排列 | pái liè |
| combination | 组合 | zǔ hé |
| factorial | 阶乘 | jiē chéng |
| multiplication principle | 乘法原理 | chéng fǎ yuán lǐ |
How many ways to arrange a bookshelf?
- You have 10 books and want to choose 3 to display. How many ways? If order matters, it's a permutation 排列. If you just want any 3, it's a combination 组合.
- Counting techniques are the foundation of probability — and they appear everywhere, from lottery odds to password security.
Permutation or combination lab
Choose whether order matters in a counting problem.
Permutations (order matters)
- A permutation is an arrangement where order matters: ${}^nP_r = \dfrac{n!}{(n-r)!}$.
- Example: arranging 3 books from 10: ${}^{10}P_3 = \dfrac{10!}{7!} = 10 \times 9 \times 8 = 720$.
Worked example. How many 3-letter codes can be made from 26 letters (no repeats)? ${}^{26}P_3 = 26 \times 25 \times 24 = 15\,600$.

Permutations: 3 books arrange in 3 × 2 × 1 = 6 different orders
In a combination, the order of the chosen items:
Combinations ignore order; permutations count order.
How many ways to arrange 3 books from 10 on a shelf (¹⁰P₃)?
¹⁰P₃ = 10!/(10-3)! = 10!/7! = 10 × 9 × 8 = 720.
Combinations (order doesn't matter)
- A combination is a selection where order doesn't matter: ${}^nC_r = \dbinom{n}{r} = \dfrac{n!}{r!\,(n-r)!}$.
- Example: choosing 3 books from 10: ${}^{10}C_3 = \dfrac{10!}{3!\,7!} = \dfrac{720}{6} = 120$.
Permutation vs combination. Choosing a committee of 3 from 10 people is a combination (order doesn't matter). Choosing a president, vice-president, and secretary from 10 is a permutation (order matters — the roles are different).

Order matters for a permutation, but not for a combination
How many ways are there to choose 2 from 5 (⁵C₂)?
⁵C₂ = 5!/(2!3!) = 120/(2×6) = 10.
⁵P₃ is greater than ⁵C₃.
⁵P₃ = 60 (order matters), ⁵C₃ = 10 (order doesn't). Permutations always ≥ combinations.
Arrangements with repeats
- To arrange a word with repeated letters, divide by the factorial 阶乘 of each repeat count.
- Example: NEEDLESS has 8 letters with 3 E's and 2 S's: arrangements $= \dfrac{8!}{3!\,2!} = \dfrac{40320}{12} = 3360$.
How many arrangements of the letters of NEEDLESS? (8 letters: E×3, S×2 → 8!/(3!2!))
8!/(3!2!) = 40320/(6×2) = 40320/12 = 3360.
The multiplication principle 乘法原理
- If one choice can be made in $m$ ways and another in $n$ ways, both together can be made in $m \times n$ ways.
- Example: 3 shirts and 4 trousers → $3 \times 4 = 12$ outfits.
You have 3 shirts and 4 trousers. How many outfits can you make?
3 × 4 = 12 outfits (multiplication principle).
You've got it
- permutation (order matters): ${}^nP_r = \dfrac{n!}{(n-r)!}$
- combination (order doesn't): ${}^nC_r = \dfrac{n!}{r!(n-r)!}$
- repeated letters: divide $n!$ by each repeat's factorial (NEEDLESS → $\dfrac{8!}{3!\,2!}$)