Permutations and combinations
Introduced| English | Meaning |
|---|---|
| permutation/ˌpɜːmjuːˈteɪʃn/ | An ordered arrangement of selected objects, in which changing the order gives a different arrangement. |
| combination/ˌkɒmbɪˈneɪʃn/ | A selection of items in which their order is not significant. |
| factorial/fækˈtɔːrɪəl/ | The product of the positive integers up to a given positive integer; zero factorial is defined as one. |
| multiplication principle/ˌmʌltɪplɪˈkeɪʃn ˈprɪnsɪpl/ | multiplication principle |
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:
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Combinations ignore order; permutations count order.
How many ways to arrange 3 books from 10 on a shelf (¹⁰P₃)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
¹⁰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₂)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
⁵C₂ = 5!/(2!3!) = 120/(2×6) = 10.
⁵P₃ is greater than ⁵C₃.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
⁵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!))
Difficulty 2/5 · 140 coins + a small bonus on first completion today
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?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
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!}$)
Write from 56 permutations and 28 combinations
- Eight distinct letters are available and two are chosen.
- Find the permutation count and the combination count.
From 8 distinct letters, how many ordered pairs and how many unordered pairs can be chosen?
8 times 7 is 56, and each unordered pair has been counted twice.
How many unordered pairs are there?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
8 C 2 is 28.