How many four-digit positive integers have at least one digit that is a or a ?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
Count the complement: four-digit numbers using neither 2 nor 3 number 7 · 8 · 8 · 8 = 3584; subtract from the 9000 four-digit numbers.
Solution
"At least one" suggests counting the opposite: four-digit numbers that contain no and no at all.
Total four-digit numbers: the leading digit is through and each other digit is through , so .
Numbers avoiding and : the leading digit comes from , options; each of the other three digits comes from the eight digits other than and . That gives .
Subtract: .
The answer is .
Why this works
A condition of the form "at least one digit is special" splits into many overlapping cases if attacked directly, but its complement, "no digit is special," is a single product of independent choices. The only care needed is the leading digit, which loses the option in the total and loses , , in the complement.
Alternative approach
Rough check: each digit is a or with probability about , so a random four-digit number avoids both with probability about ; roughly of , about , should qualify, and only choice (E) is close.
The trap
Allowing 0 as a leading digit in the complement (8^4 = 4096, choice (B)) or subtracting from 10^4 instead of 9000.
Common mistakes
- Allowing as a leading digit in the complement (, choice (B)) or subtracting from instead of .
- Trying direct casework on how many s and s appear and losing track of the overlapping cases.
Techniques
Count the complement and subtract from the total