Module 2.1 · Counting and Probability
Casework and organized lists
Many counting problems have no formula that fits. The reliable fallback is to split the problem into cases and count each case with an organized list. Casework shows up on almost every MATHCOUNTS and AMC 8 test, and it is the tool you reach for when you aren't sure what else to do.
Organized lists
An organized list writes the possibilities in a fixed order so that you never skip one and never write one twice. The trick is to decide in advance which quantity you change first.
Suppose you want every way to make cents from pennies, nickels and dimes. Changing coins at random is a recipe for mistakes. Instead, fix the number of dimes (the biggest coin) first, then the number of nickels, and let pennies fill in the rest.
| Dimes | Nickels | Pennies |
|---|---|---|
That gives ways. Once the dimes and nickels are chosen, the pennies are forced, so each row of the list really is one way.
Casework
Casework is the same idea at a larger scale: break the whole count into smaller counts you can handle, then add.
Rules for good casework
- Choose the cases by one feature (the first digit, the largest part, the number of a certain coin).
- The cases must not overlap: no possibility may be counted in two cases.
- The cases must cover everything: every possibility belongs to some case.
- Count each case separately, then add.
A good case split makes each case easy. Splitting on the most restrictive feature (the biggest coin, the largest side, the leading digit) usually works best, because it leaves the fewest choices for everything else.
Worked example: Digit sums
How many three-digit numbers have digits that add up to ?
Split on the hundreds digit , which can be to (it can't be ). The other two digits must add to . Two digits that add to can be chosen in ways (, , …, ).
| tens + units | ways | |
|---|---|---|
Total: .
Worked example: Triangles with a fixed perimeter
How many non-congruent triangles have integer side lengths and perimeter ?
List the sides in order so each triangle is written only once. The triangle inequality says . Since , that means , so . Also is the largest side, so .
- : with : and .
- : with : .
The triangles are , and : triangles.
Worked example: Counting by the last step
In how many ways can you climb a staircase of steps if each move goes up or steps?
Let be the number of ways to climb steps. Split on the last move. If it is a -step, the moves before it climb steps; if it is a -step, they climb steps. The cases don't overlap and cover everything, so
With and : , , , . There are ways.
Common mistake
The most common casework error is overlapping cases. If you count "numbers with a " and "numbers with a " as separate cases and add, you count twice. Pick a single feature to split on so each possibility lands in exactly one case.
Tip
Before adding, check one or two cases by writing them out fully. If a case seems to have a pattern (like above), confirm the first and last entries and trust the pattern in between.
Practice
In how many ways can you make cents using nickels, dimes and quarters? (You don't have to use every kind of coin.)
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many positive integers less than have digits that add up to ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many non-congruent rectangles have integer side lengths and a perimeter of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Two standard six-sided dice are rolled, one red and one blue. In how many of the possible outcomes is the sum of the two numbers ?
In how many three-digit numbers is the middle digit the average of the other two digits? (For example, and qualify.)
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many non-congruent triangles have integer side lengths and perimeter ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A frog climbs a ladder with rungs, starting on the ground. Each jump takes it up either rung or rungs. In how many different ways can it reach the th rung?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Ava, Ben and Cal share identical candies. Each of them gets at least one candy, and Ava gets strictly more than each of the other two. In how many ways can the candies be shared?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Real contest practice
- 2009 AMC 8, Problem 16: count three-digit numbers with a given digit product by casework on the digits.
- 2019 AMC 8, Problem 25: sharing apples, which you can solve with a table of cases on one person's share.
- 2020 AMC 8, Problem 23: split on how many awards each student receives.