QlarIITy

MathematicsJEE Main 2022 · 25 JuneInteger

The total number of three-digit numbers, with one digit repeated exactly two times, is _______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

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:

N=Ntotal−NothersN = N_{\text{total}} - N_{\text{others}}

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.

  1. Step 1: All three-digit numbers

    The three-digit numbers run from 100 to 999, so there are 900 of them.

  2. Step 2: Remove the others

    Numbers with all digits different number 9×9×8=6489 \times 9 \times 8 = 648, and those with all digits alike number 9. The rest have exactly one digit used twice: 900−648−9=243900 - 648 - 9 = 243.

Answer. 243

Sanity check. Directly: two different non-zero digits give 9×8×3=2169 \times 8 \times 3 = 216 numbers; with 0 there are 9 of the form a00a00 and 18 of the forms aa0aa0 and a0aa0a; and 216+9+18=243216 + 9 + 18 = 243.

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. 900−648−9900 - 648 - 9

More on Fundamental Principle of Counting