Basic Counting Principles

Learning goals

  • Multiply the choices at each stage of a sequence, and see why with a tree or grid
  • Add group sizes when one choice comes from separate, non-overlapping groups
  • Decide whether a count multiplies or adds by checking what one complete outcome contains
  • Tell apart arrangements whose choices shrink as items are used from repeated choices that give a power

The multiplication principle

Start with the lunch, but shrink it so we can see everything. Say there are 22 sandwiches, ham and veg, and 33 drinks, tea, milk, and juice. A tree diagram lays out the choices in stages. Draw one branch for each sandwich, then from the end of every sandwich branch draw one branch for each drink. Each path from left to right makes one complete lunch, and the tips on the far right are all the lunches there are.

A tree diagram for 2 sandwiches and 3 drinksA start dot branches to Ham and Veg; each branches to Tea, Milk, Juice; the six tips are the six lunches.SandwichDrinkOutcomeHamVegTeaMilkJuiceTeaMilkJuiceHam, TeaHam, MilkHam, JuiceVeg, TeaVeg, MilkVeg, Juice
A tree for choosing one of 2 sandwiches and then one of 3 drinks. Each of the 2 sandwich branches splits into the same 3 drink branches, giving 2 groups of 3 tips. The 6 tips on the right are every possible lunch.

The tree makes the count easy to see. There are 22 sandwich branches, and each one sprouts the same 33 drink branches, so the tips come in 22 equal groups of 33. That is 3+3=63 + 3 = 6 tips, and counting equal groups is exactly what multiplication does, so 2×3=62 \times 3 = 6 lunches. This is the multiplication principle, also called the fundamental counting principle. Whenever a stage offers the same number of choices next, no matter which earlier choices were made, multiply the stage counts.

Why mm choices then nn choices give m×nm \times n outcomes#

Suppose the first stage has mm possible choices, and that whichever one you pick, the second stage always offers the same nn choices. Draw the tree. From one starting point, draw a branch for each first-stage choice, which gives mm branches and finishes the first stage.

Now grow the second stage. At the tip of every one of those mm branches the second stage offers nn choices, so draw nn new branches there. Each first-stage branch sprouts exactly nn branches of its own. The tip of each of those second-stage branches is one complete outcome: a first choice paired with a second choice.

Count the tips. There are mm first-stage branches, and each ends in nn tips, so the tips fall into mm equal groups of nn. Adding nn a total of mm times is the definition of multiplication, so the number of tips is

n+n+⋯+n⏟m groups=m×n.\underbrace{n + n + \cdots + n}_{m \text{ groups}} = m \times n.

Every outcome is one tip and every tip is one outcome, with none repeated and none left out. So the number of combined outcomes is exactly the number of tips, m×nm \times n.

Trees, lists, and grids

A tree is one way to organize a count. Two others are worth keeping in your toolkit, because they let you verify a count by hand. Reading the tree’s tips from top to bottom, in a fixed order, gives an organized list of every outcome. That order holds the sandwich and runs through the drinks before moving to the next sandwich. Listing in a fixed order is what keeps you from skipping an outcome or counting one twice.

A grid shows the same count as a rectangle. Put the sandwiches down the side and the drinks across the top, and each cell is one lunch. A rectangle with 22 rows of 33 cells holds 2×3=62 \times 3 = 6 cells. That is the multiplication principle in picture form, since the area of a rectangle is rows times columns.

A 2 by 3 grid of lunchesTwo rows, Ham and Veg, by three columns, Tea, Milk, Juice; six cells each with a dot; 2 times 3 equals 6.TeaMilkJuiceHamVeg2 × 3 = 6 outcomes
The same 6 lunches as a grid: 2 sandwich rows and 3 drink columns. Each cell is one outcome, so the count is 2 rows times 3 columns, the same multiplication as the tree.

Worked example 1 Count lunches at the full diner

The diner from the opening offers 44 sandwiches and 33 drinks, and a lunch is one sandwich and one drink. How many different lunches are possible?

This is a sequence of two stages: first choose a sandwich, then choose a drink. Every sandwich can pair with every drink, so whichever sandwich comes first, the same 33 drinks are still available. Apply the multiplication principle with m=4m = 4 and n=3n = 3:

4×3=12.4 \times 3 = 12.

There are 1212 possible lunches. As a check, a tree would draw 44 sandwich branches, each splitting into 33 drinks. That gives 44 groups of 33 tips, which is 1212 tips in all.

Three or more stages

The principle does not stop at two stages. Suppose you make a third choice that still offers the same number of options no matter what came before. Every existing outcome then splits again, once for each new option, so you multiply by the third stage’s count too.

In general, this holds whenever every stage offers the same number of choices no matter what came before. Then the number of ways to complete the sequence is the product of the choices at each stage:

(stage 1 choices)×(stage 2 choices)×(stage 3 choices)×⋯(\text{stage 1 choices}) \times (\text{stage 2 choices}) \times (\text{stage 3 choices}) \times \cdots

The reasoning is the same each time. Adding one more stage with kk choices replaces every outcome so far with kk versions of it, which multiplies the running total by kk.

Worked example 2 Build a sundae in three stages

A sundae is built in three stages: choose 11 of 33 ice-cream flavors, then 11 of 22 sauces, then 11 of 44 toppings. How many different sundaes are possible?

At every stage the full set of options is still there, whatever was chosen before, so multiply the three stage counts together:

3×2×4=24.3 \times 2 \times 4 = 24.

There are 2424 sundaes. You can see the multiplying happen step by step. The flavor and sauce alone give 3×2=63 \times 2 = 6 combinations, and then each of those 66 splits into 44 topping choices, 6×4=246 \times 4 = 24.

Check your understanding

A smoothie shop lets you pick one of 33 sizes, one of 55 flavors, and one of 22 add-ins. How many different smoothies (one size, one flavor, and one add-in) are possible?

Answer choices

The addition principle

Not every problem is a sequence of choices. Sometimes you make a single choice, picking one item from one of several separate groups. When the groups do not overlap, you add their sizes instead of multiplying.

Suppose a prize shelf holds 55 books and 33 board games, and you take exactly one item home. Your prize is either a book or a game, never both at once. Because no item belongs to both groups, you can slide the two groups together into one pile of 5+3=85 + 3 = 8 items. Choosing one prize is then just choosing one item from that pile. So there are 88 possible prizes. This is the addition principle. If you choose one item from groups that share no members, the number of choices is the sum of the group sizes.

The contrast with the multiplication principle is the entire point, so hold the two side by side. A sequence of choices, “this and then that,” multiplies, because each first choice opens up a fresh set of second choices. A single choice from separate groups, “this or that,” adds, because the groups sit beside each other and you land in only one of them. The numbers can be identical while the answers differ: 55 and 33 give 5×3=155 \times 3 = 15 for one book and one game. But 5+3=85 + 3 = 8 is the count for one prize that is a book or a game.

Worked example 3 Add or multiply? Reading the problem

A club must send one representative to a meeting. The representative may be any of the 77 seniors or any of the 66 juniors. How many choices does the club have?

The club picks one person, and that person comes from one of two separate groups (a senior or a junior, not both). No one is counted in both groups, so this is a single choice from separate groups: add.

7+6=13.7 + 6 = 13.

There are 1313 choices. Now compare a different task: send one senior and one junior as a pair of representatives. That is a sequence of two choices, so it multiplies, 7×6=427 \times 6 = 42. Do not decide from a single word alone. Ask what one complete answer contains. One representative contains a single name from one group, so it adds. A pair contains one name from each group, so it multiplies.

Check your understanding

A lunch special lets you choose your single main course from 44 hot dishes or 33 cold salads, and you choose exactly one dish. How many choices do you have for your one dish?

Answer choices

Check your understanding

A cafe's combo is either a sandwich or a salad. A sandwich is one of 44 breads with one of 33 fillings, and a salad is one of 55 dressings with one of 22 toppings. How many different combos are possible?

Answer choices

Counting arrangements stage by stage

A special kind of counting asks in how many orders a set of items can be placed. Take 33 different books, A, B, and C, that you want to line up on a shelf. Treat each shelf position as a stage. For the first position you may use any of the 33 books. Once that book is placed it is used up, so only 22 books remain for the second position. After that, just 11 book remains for the third. The choices shrink at each stage, and by the multiplication principle you multiply them:

3×2×1=6.3 \times 2 \times 1 = 6.
Counting arrangements of 3 books by shrinking choicesThree position boxes holding 3, 2, and 1 choices, multiplied to give 6 orders.1st spot2nd spot3rd spot321××3 × 2 × 1 = 6 orders
Arranging 3 books in a row, one position at a time. The first position has 3 choices, the second has 2 (one book is now used), and the last has 1. Multiplying the shrinking choices gives 3 times 2 times 1 = 6 orders.

Written out, those six orders are ABC, ACB, BAC, BCA, CAB, and CBA: every way to line up three different books.

This is not a new rule. It is the multiplication principle applied to stages whose choice counts shrink by one each time. The counts shrink because each item you place is no longer available for the next position. You do not always fill every position from the whole set, either. If you only want the first few places in order, just multiply the shrinking counts for as many stages as you fill, and stop.

Worked example 4 Hand out gold, silver, and bronze

Six runners finish a race, and the top three earn gold, silver, and bronze medals. In how many ways can the three medals be awarded?

Award the medals as a sequence of three stages, watching the choices shrink. Any of the 66 runners can win gold. Once gold is decided, 55 runners remain for silver, and then 44 remain for bronze:

6×5×4=120.6 \times 5 \times 4 = 120.

There are 120120 ways. The choices drop from 66 to 55 to 44 because a runner who already has a medal cannot receive another. That is exactly what happens whenever an item cannot be reused. Notice we stopped after three stages, since only three medals are given out.

Check your understanding

In how many different orders can 44 different books be arranged in a row on a shelf?

Answer choices

Repeated choices and exponents

When the same number of choices repeats at every stage, the product becomes a power, which connects counting straight back to exponents. Flip a coin and there are 22 outcomes, heads or tails. Flip it again and each of those splits into 22, giving 2×2=42 \times 2 = 4. Flip it a third time and you reach 2×2×2=82 \times 2 \times 2 = 8. For nn flips you multiply nn twos:

2×2×⋯×2⏟n flips=2n.\underbrace{2 \times 2 \times \cdots \times 2}_{n \text{ flips}} = 2^n.

The exponent counts how many stages there are, and the base counts the choices at each stage. The same shape appears whenever choices repeat. A 44-digit code, where each digit can be any of the 1010 digits 00 through 99 and a digit may repeat, has

10×10×10×10=104=10,00010 \times 10 \times 10 \times 10 = 10^4 = 10{,}000

possible values, which is why a 44-digit PIN has exactly ten thousand settings. Watch the order of the base and the exponent: 2n2^n (two choices, nn times) and n2n^2 (nn choices, twice) are different counts. So keep straight which number is the choices and which is the number of stages.

Worked example 5 How many 3-symbol flags?

A signal flag shows 33 colored bands, stacked top to bottom. Each band can be colored with any of 55 available colors, and a color may repeat, so two or three bands can match. How many different flags are possible?

Each band is a stage with 55 choices, and the same 55 colors are available at every band no matter what the earlier bands used. Multiply three fives, which is a power of five:

5×5×5=53=125.5 \times 5 \times 5 = 5^3 = 125.

There are 125125 possible flags. The choices do not shrink here, because a color may repeat, so every band keeps all 55 colors available. That repetition is what turns the product into the clean power 535^3.

Check your understanding

A padlock has 33 dials, each set to one of 66 symbols, and a symbol may repeat across dials. How many dial settings are possible?

Answer choices

Counting the equally likely possibilities

These rules matter beyond menus and medals: they answer how many results an experiment like rolling dice or drawing cards has, without listing every one. When those results are all equally likely, that total is exactly what the next lesson, on probability, needs.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

Long before anyone wrote down a rule for counting, people were counting anyway. One of the oldest examples is an ancient Chinese book of fortune telling, the I Ching. The book is built out of figures, and every figure is a stack of six short lines. Each line is drawn in one of two ways. It is either solid, or broken in the middle. Nothing else about it varies.

So how many different figures are possible? The top line is solid or broken, and so is the second, and so on down all six. That is the same two choices repeated six times, which this lesson would write as 262^6.

The book holds sixty-four figures, and it has held sixty-four for more than two thousand years, before anyone had a way to write a power.

Your coins behave the same way. Flip one six times and it can land 262^6 ways, which is sixty-four again, for exactly the reason the book has sixty-four figures.