Core answer: Order matters → permutations: P(n,k) = n!/(n−k)!. Order doesn't matter → combinations: C(n,k) = n!/(k!(n−k)!). Picking a president, secretary and treasurer from 10 people is P(10,3) = 720; picking a 3-person committee is C(10,3) = 120 — exactly 3! = 6 times fewer, because each committee has 6 internal orderings.
Which formula when
| Situation | Order matters? | Formula | Example (n=10, k=3) |
|---|---|---|---|
| Podium / roles / password | Yes | P(n,k) = n!/(n−k)! | 720 |
| Committee / hand / toppings | No | C(n,k) = P/k! | 120 |
| PIN with repeats allowed | Yes, repeats ok | n^k | 1,000 |
| Arranging all n | Yes | n! | 3,628,800 |
Worked examples
Example 1 — The 6/49 lottery. C(49,6) = 49!/(6!·43!) = 13,983,816. Your "lucky numbers" have the same 1-in-14-million chance as 1-2-3-4-5-6.
Example 2 — Poker pairs. Number of 5-card hands: C(52,5) = 2,598,960. Number of ways to get exactly one pair: choose rank (13) × 2 suits of 4 (C(4,2)=6) × 3 more ranks (C(12,3)=220) × suits (4³=64) = 1,098,240 → probability ≈ 42%.
Example 3 — Seating photos. 5 people line up: 5! = 120 arrangements. If two must stand adjacent, glue them into one unit: 4! × 2 = 48.
Example 4 — License plates. 2 letters + 4 digits, repeats allowed: 26² × 10⁴ = 6,760,000 plates per pattern — why cities add letters as they grow.
The symmetry tricks
- C(n,k) = C(n,n−k): choosing 47 non-winners of 49 is the same count as choosing 6 winners. Compute the smaller side.
- C(n,0) = C(n,n) = 1; C(n,1) = n.
- Pascal's rule: C(n,k) = C(n−1,k−1) + C(n−1,k) — builds the triangle.
Common mistakes and myths
- Using permutations for committees — if titles don't exist, order is irrelevant; divide by k!.
- Forgetting the "with replacement" case — a 4-digit PIN is 10⁴ = 10,000, not P(10,4) = 5,040, because digits repeat.
- Believing past draws change odds — each lottery draw is independent; last week's numbers are exactly as likely this week.
- Double-counting in "at least one" problems — complement is easier: P(at least one) = 1 − P(none).
- Thinking more tickets change the math meaningfully — 100 tickets in 6/49 is still a 0.0007% chance; combinatorics dwarfs purchases.