Math Core

Module 2.2 · Counting and Probability

The multiplication principle

When a choice happens in stages, you don't need to list every possibility. You multiply. The multiplication principle is the engine behind nearly every counting formula, and learning to set up the stages well is the single most useful counting skill on the AMC 8.

The principle

Suppose you pick an outfit: 44 shirts, 33 pairs of pants, 22 pairs of shoes. For each shirt there are 33 pants, so 4⋅3=124 \cdot 3 = 12 shirt-and-pants combinations. For each of those there are 22 pairs of shoes, so 12⋅2=2412 \cdot 2 = 24 outfits.

The multiplication principle

If a task happens in stages, with n1n_1 choices for the first stage, n2n_2 choices for the second stage no matter what was chosen first, and so on, then the number of ways to do the whole task is

n1×n2×n3×⋯n_1 \times n_2 \times n_3 \times \cdots

The phrase "no matter what was chosen first" is the key condition. The number of choices at each stage must be the same whatever happened earlier, even if the actual options change.

Slots

For numbers, codes and words, draw one blank slot for each position and write the number of choices in each slot.

How many license plates have 22 letters followed by 33 digits?

26⏟letter×26⏟letter×10⏟digit×10⏟digit×10⏟digit=676,000.\underbrace{26}_{\text{letter}} \times \underbrace{26}_{\text{letter}} \times \underbrace{10}_{\text{digit}} \times \underbrace{10}_{\text{digit}} \times \underbrace{10}_{\text{digit}} = 676{,}000.

How many three-digit numbers have only odd digits? Each slot has 55 choices (1,3,5,7,91, 3, 5, 7, 9), so 5⋅5⋅5=1255 \cdot 5 \cdot 5 = 125.

Fill the most restricted slot first

When some slots have special rules, fill those first. Otherwise the number of choices for a later slot can depend on what happened earlier, and the principle breaks.

Worked example: Even numbers with distinct digits

How many even three-digit numbers have three different digits?

The units digit must be even (0,2,4,6,80, 2, 4, 6, 8) and the hundreds digit can't be 00. These two rules interact, because choosing 00 for the units digit changes how many options the hundreds digit has. Split into two cases.

  • Units digit 00: hundreds digit has 99 choices (11 to 99), tens digit has 88 left: 9⋅8=729 \cdot 8 = 72.
  • Units digit 2,4,62, 4, 6 or 88 (44 choices): hundreds digit can't be 00 or the units digit, so 88 choices; tens digit has 88 left (anything except those two): 4⋅8⋅8=2564 \cdot 8 \cdot 8 = 256.

Total: 72+256=32872 + 256 = 328.

Worked example: Adjacent stripes

A flag has 44 horizontal stripes. Each is painted one of 55 colors, and neighboring stripes must be different colors. How many flags are possible?

Top stripe: 55 choices. Each stripe below it: any color except the one directly above it, so 44 choices. Total: 5⋅4⋅4⋅4=3205 \cdot 4 \cdot 4 \cdot 4 = 320.

Notice the colors that are allowed change from flag to flag, but the number of allowed colors is always 44. That's all the principle needs.

Worked example: Adding and multiplying together

Three roads join town AA to town BB, four roads join BB to CC, and two more roads go directly from AA to CC. How many routes go from AA to CC without visiting a town twice?

Split on whether the route passes through BB. Through BB: 3⋅4=123 \cdot 4 = 12. Direct: 22. Total: 12+2=1412 + 2 = 14.

Use multiplication for "and then" (stages) and addition for "or" (separate cases).

Common mistake

Don't forget that a leading digit can't be 00. "Four-digit PIN codes" allow a leading 00 (10410^4 of them); "four-digit numbers" don't (9⋅103=90009 \cdot 10^3 = 9000). Read carefully which one the problem means.

Practice

Practice 1

A deli offers 33 kinds of bread, 55 kinds of meat and 44 kinds of cheese. A sandwich uses one of each. How many different sandwiches are possible?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

How many four-digit numbers have only even digits?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

How many three-digit numbers have three different digits?

Practice 4

A flag has 33 vertical stripes, each painted one of 66 colors. Neighboring stripes must be different colors, but the two outer stripes may match. How many flags are possible?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A palindrome reads the same forward and backward, like 3727337273. How many five-digit palindromes are divisible by 55?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

How many odd three-digit numbers have three different digits?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

In how many four-digit numbers do the digits alternate between odd and even? (Examples: 38163816 and 27492749.)

Practice 8

Eight runners are in a race. In how many ways can the gold, silver and bronze medals be awarded, if Dana, one of the runners, is known not to win gold? (No ties.)

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Real contest practice