Module 13 · Sequences, probability and counting · Lesson 81 of 84
Counting principles
The addition and multiplication principles, permutations, combinations, and counting with repeated items.
In this lesson · about 24 minutes
- Use the Addition and Multiplication Principles
- Count arrangements with permutations, P(n, r)
- Count selections with combinations, C(n, r)
- Count arrangements with repeated items and subsets of a set
How many passwords, menus or teams are possible? Listing them all is slow, so we count cleverly.
Two principles
- Addition Principle: if one event can happen in m ways or a different, non-overlapping one in n ways, there are m + n ways in total. (3 soups or 4 salads: 7 starters.)
- Multiplication Principle: if one choice has m options and then another has n, there are m · n ways together. (3 soups and 4 salads: 12 meals.)
Permutations: order matters
The number of ways to arrange r things chosen from n is P(n, r) = n!/(n − r)!. Awarding gold, silver and bronze among 8 runners: P(8, 3) = 8 · 7 · 6 = 336. Arranging all n things: n!.
Combinations: order doesn't matter
The number of ways to choose r things from n is C(n, r) = n!/(r!(n − r)!), also written (n r) or ₙCᵣ. Choosing 3 people for a committee from 8: C(8, 3) = 336/3! = 56. Each committee was counted 3! = 6 times by the permutation, once for each order.
Ask: "if I swap two of the chosen items, is it a different outcome?" Yes: permutation. No: combination.
More counting
- A set with n elements has 2ⁿ subsets (each element is in or out). A pizza with 6 possible toppings: 2⁶ = 64 different pizzas.
- Permutations with repeats: arranging n items where one appears r₁ times, another r₂ times, …: n!/(r₁! r₂! …). The letters of MISSISSIPPI: 11!/(4! 4! 2!) = 34,650.
Whiteboard · watch and try
Permutation or combination?
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Try it · interactive
Counting, combinations and Pascal's triangle
Change n and r. See how many more permutations there are than combinations, and find C(n, r) in Pascal's triangle.
n! = 5!
120
Permutations P(5, 2) = n!/(n − r)! (order matters)
20
Combinations C(5, 2) = n!/(r!(n − r)!) (order doesn't)
10
Every combination of 2 can be arranged in 2! = 2 orders, so P = C × r!: 20 = 10 × 2.
(x + y)⁵ = x⁵ + 5x⁴y + 10x³y² + 10x²y³ + 5xy⁴ + y⁵
Pascal's triangle
Each number is the sum of the two above it. Row n lists C(n, 0) to C(n, n), the coefficients of (x + y)ⁿ.
Loading practice…
Sorting drill
Does order matter?
Sort each problem: permutation (order matters) or combination (it doesn't).
- First, second and third place in a race
- Choosing 5 cards for a poker hand
- Arranging 6 books on a shelf
- Picking 3 toppings for a pizza
- A 4-digit PIN with different digits
- Choosing a 4-person team from 12
0 of 6 sorted
Check your understanding0 of 5 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 5
Practice sets mastered: 0 of 1
Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.