๐ Key idea of this section
A slot with a RULE gets filled first. Then the decay: used things can't be reused (unless repeats are allowed).
Real counting problems come with rules: "no repeats," "the code can't start with 0," "it has to be even." The strategy is always the same โ fill the PICKY slot first, then let the other slots multiply as usual.
Example 1: the zero rule. How many 3-digit codes are there if the first digit can't be 0? (Repeats allowed.) The first slot is picky: 9 choices (1โ9). The others are free: 10 each.
9 ร 10 ร 10 = 900 codes โ
Example 2: no repeats. How many 3-digit numbers use the digits 1, 2, 3, 4 with no digit repeated?
4 ร 3 ร 2 = 24 โ
The decay is the whole game: each digit you use shrinks the next slot's menu by one.
Example 3: picky slot FIRST. How many EVEN 2-digit numbers can you build from 2, 3, 4, 5 with no repeats? The ones digit is picky โ it must be 2 or 4. Fill it first: 2 choices. Then the tens digit: 3 left.
3 ร 2 = 6 โ (Check: 24, 32, 34, 42, 52, 54 โ six!)
Do it the other way โ tens first โ and you get stuck: "3 choices for the ones digit... wait, it depends on whether the tens digit was even." Picky-slot-first dodges that mess completely. That's why it's a rule, not a suggestion.
โ๏ธ Your Turn!
How many 3-digit numbers from the digits 1, 2, 3, 4, 5 (no repeats) END in 5?
๐ Show the answers
Answer: the ones slot is picky โ exactly 1 choice (it must be 5). Then 4 ร 3 for the rest: 4 ร 3 ร 1 = 12.