Clear Notion Academy

Permutations and Combinations (Beyond Advanced) Practice: How many integers from 1000 to 9999 inclusive are divisible by 5 and have at least two…

Question

How many integers from 10001000 to 99999999 inclusive are divisible by 55 and have at least two equal digits?

Options

  1. 792792
  2. 952952
  3. 12961296
  4. 848848

Answer

Correct option: D

Hint

Count all multiples of 5 first, then the ones with four different digits, splitting on the units digit because 00 interacts with the thousands digit.

Solution

Multiples of 55 in [1000,9999][1000,9999]: 9999−1000+15=1800\dfrac{9999-1000+1}{5}=1800 (equivalently 9⋅10⋅10⋅29\cdot10\cdot10\cdot2). Now count those with all four digits distinct. Units digit 00: thousands 99 choices, hundreds 88, tens 77, giving 504504. Units digit 55: thousands digit avoids 00 and 55 so 88 choices, hundreds 88 (now 00 is allowed), tens 77, giving 448448. Total distinct-digit multiples: 952952. So the numbers with a repeated digit number 1800−952=8481800-952=848. Treating both units digits alike (9⋅8⋅7⋅2=10089\cdot8\cdot7\cdot2=1008) gives 792792; 952952 is the distinct-digit count itself; 12961296 comes from subtracting only the units-00 case (1800−5041800-504).

More questions from Permutations and Combinations (Beyond Advanced) Practice

Practise the full set: Permutations and Combinations — Beyond Advanced