πŸ‡ΊπŸ‡Έ AMC 8 ⇄ switch contest
2016 AMC 8

Problem 17

Problem 17 · 2016 AMC 8 Easy
Counting & Probability complementary-counting

An ATM password at Fred's Bank is composed of four digits from 0 to 9, with repeated digits allowable. If no password may begin with the sequence 9, 1, 1, then how many passwords are possible?

Show answer
Answer: D — 9990 passwords.
Show hints
Hint 1 of 2
"How many are ALLOWED" is awkward to count head-on. But the FORBIDDEN ones are super easy to count — so count everything, then subtract the bad ones. (Total − bad = good.)
Still stuck? Show hint 2 →
Hint 2 of 2
A forbidden password has its first three digits locked as 9, 1, 1; only the fourth digit is free. So there are very few bad ones — count those, not the good ones.
Show solution
Approach: complementary counting (total minus forbidden)
  1. Count everything first: 4 digits, each 0–9, gives 104 = 10,000 possible passwords.
  2. Count the forbidden ones: they must read 9, 1, 1, _ — first three digits fixed, last digit any of 10. That's only 10 bad passwords.
  3. Good = total − bad = 10,000 − 10 = 9990.
  4. Why this transfers: when a rule says "everything EXCEPT a small forbidden set," counting the small forbidden set and subtracting is almost always faster than counting the survivors directly.
Mark: · log in to save