CAT 2020 Slot 3 — QA Question 1
Numbers (P&C)Easy
How many integers in the set {100, 101, 102, ..., 999} have at least one digit repeated?
Answer & solution
Answer: 252
Solution
Easy
Counting "at least one repeated digit" directly is messy. Use complementary counting: subtract the numbers with all distinct digits from the total count of 3-digit numbers.
1
Total 3-digit numbers. The set is . The hundreds digit has choices (–), the other two have each (–).
2
Numbers with all distinct digits. Hundreds digit: ways (–). Tens digit: ways (any digit except the hundreds digit, now allowed). Units digit: ways (any except the two already used).
3
Subtract. "At least one repeated digit" is the complement of "all distinct".