How many integers in the set have at least one digit repeated?
How many integers in the set have at least one digit repeated?
Entered answer:
Solution
We need to find how many numbers from 100 to 999 have at least one digit repeated.
Key insight: Instead of directly counting numbers with repeated digits (which is complicated), we'll use a smart approach - find numbers with NO repeated digits and subtract from the total.
The set contains all three-digit numbers: 100, 101, 102, ..., 999
Total three-digit numbers =
For a three-digit number with format ABC (where A, B, C are the digits):
For the first digit (A):
Can be: 1, 2, 3, 4, 5, 6, 7, 8, 9
Cannot be 0 (since we need a three-digit number)
Choices for A = 9
For the second digit (B):
Can be any digit from 0 to 9, except the digit we used for A
Choices for B = 9
For the third digit (C):
Can be any digit from 0 to 9, except the digits we used for A and B
Choices for C = 8
This ensures all three digits are different, so no repetition occurs.
When making independent choices, we multiply the number of options:
Numbers with NO repeated digits =
Using our complement approach:
Numbers with repeated digits = Total numbers - Numbers with NO repeated digits
Numbers with repeated digits =
Answer: 252
Key Takeaway: When "at least one" problems seem complex, try the complement method - it often makes the solution much cleaner and faster!
Related questions:
CAT 2022 Slot 3