Add cases, multiply stages, subtract bad outcomes
Choose the counting operation from the structure of an outcome.
Understand the idea
Add counts for disjoint alternatives. Multiply counts for consecutive stages when each earlier choice has the stated number of continuations. If branch sizes differ, add their products instead of multiplying by a guessed common count. A complement subtracts bad outcomes from a well-defined universe.
Trace a small example
Choosing one of 3 workshops or one of 2 talks gives 5 activities. Choosing one shirt from 3 and one pair of trousers from 2 gives 6 outfits. For three-digit decimal numbers, the first digit has 9 choices while later digits have 10 each: 900 numbers.
Conditions and cost
Distinguish codes from numbers: a code may permit leading zeros. Decide whether symbols may be reused. A complement is valid only if the unwanted objects belong to the same universe and are counted once.
How many two-digit decimal numbers exist?
Turn the idea into code
How many length-3 binary strings contain at least one 1?
Give me a hint
Remove the one string containing only zeros from all strings.
Show the explained solution
There are 2^3 − 1 = 7. Designating one required 1 position would count strings with several 1s more than once.
Your notes
Mark complete when you can explain it yourself.