The total number of three-digit numbers, with one digit repeated exactly two times, is _______.
Solution
Core idea. A count that is awkward directly is found by removing the other kinds from the total.
Concept refresher. A count can be found by removing the unwanted kinds from the total:
where the kinds removed must not overlap.
Picture the situation. A three-digit number runs from 100 to 999. Its digits are either all different, or exactly two of them are the same, or all three are the same. The middle kind is wanted. Counting it directly needs care with the digit 0, so it is easier to count the other two kinds and subtract.
Approach. Subtract the numbers with all digits different and with all digits alike from the total.
Step 1: All three-digit numbers
The three-digit numbers run from 100 to 999, so there are 900 of them.
Step 2: Remove the others
Numbers with all digits different number , and those with all digits alike number 9. The rest have exactly one digit used twice: .
Answer. 243
Sanity check. Directly: two different non-zero digits give numbers; with 0 there are 9 of the form and 18 of the forms and ; and .
Common wrong answers
- 252: Forgetting to remove the 9 numbers with all three digits alike gives 252.
Key takeaway
The trap. Numbers such as 111 have a digit repeated three times, not twice.
How toppers think. They confirm the subtraction with a direct count that treats zero separately.
Remember.