Problem 516: (2006 AMC 10a, 21)
How many four-digit positive integers have at least one digit that is a $2$ or a $3$?
$\textbf{(A)}\ 2439\qquad\textbf{(B)}\ 4096\qquad\textbf{(C)}\ 4903\qquad\textbf{(D)}\ 4904\qquad\textbf{(E)}\ 5416$
- Count the complement: four-digit numbers with no digit $2$ or $3$.
- The first digit has $7$ choices (not $0,2,3$) and each other digit has $8$ choices: $7\cdot8^3=3584$.
- The answer is $9000-3584=5416$.
- The answer is (E).
How many three-digit positive integers have at least one digit that is a $4$ or a $5$?