QlarIITy

MathematicsJEE Main 2026 · 24 JanuaryInteger

The number of numbers greater than 50005000, less than 90009000 and divisible by 33, that can be formed using the digits 0,1,2,5,90, 1, 2, 5, 9, if the repetition of the digits is allowed, 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. Divisibility by 33 depends only on remainders, so group the digits by remainder and count patterns.

Concept refresher. For a whole number NN with digits d1,d2,…,dkd_1, d_2, \ldots, d_k,

3∣N  ⟺  3∣(d1+d2+…+dk)3 \mid N \iff 3 \mid \left(d_1 + d_2 + \ldots + d_k\right)

because 10≡110 \equiv 1 on division by 33. When a choice is made in kk stages with n1,n2,…,nkn_1, n_2, \ldots, n_k ways at the stages, the number of ways is n1n2⋯nkn_1n_2 \cdots n_k (the fundamental principle of counting); disjoint cases are added.

Approach. Use the range to fix the first digit, sort the digits by remainder modulo 33, and count the last three digits by the pattern of their remainders.

  1. Step 1: Fix the first digit

    A four-digit number from the digits 0,1,2,5,90, 1, 2, 5, 9 that is greater than 50005000 and less than 90009000 must start with 55, since 99 gives 90009000 or more. The number 50005000 itself has digit sum 55, not a multiple of 33, so it is not counted anyway.

  2. Step 2: Sort the digits by remainder

    Dividing by 33, the digits 0,90, 9 leave 00, the digit 11 leaves 11, and 2,52, 5 leave 22. With first digit 55 (remainder 22), the other three digits must have remainders adding to 11 or 44:

    (0,0,1), (0,2,2), (1,1,2)(0, 0, 1), \ (0, 2, 2), \ (1, 1, 2)

    each in any order.

  3. Step 3: Count each pattern

    Each pattern has 33 arrangements of its remainders, and each remainder is filled by 22, 11 or 22 digits:

    (0,0,1):3⋅2⋅2⋅1=12(0,2,2):3⋅2⋅2⋅2=24(1,1,2):3⋅1⋅1⋅2=6\begin{aligned} (0, 0, 1)&: 3 \cdot 2 \cdot 2 \cdot 1 = 12 \\[4pt] (0, 2, 2)&: 3 \cdot 2 \cdot 2 \cdot 2 = 24 \\[4pt] (1, 1, 2)&: 3 \cdot 1 \cdot 1 \cdot 2 = 6 \end{aligned}

    In all 12+24+6=4212 + 24 + 6 = 42 numbers.

Answer. 42

Sanity check. A direct count over all 53=1255^3 = 125 numbers 5abc5abc finds 4242 with digit sum divisible by 33 (their digit sums leave remainders 00, 11, 22 for 4242, 4242 and 4141 of them). Example: 50015001 has digit sum 66 and 5000<5001<90005000 < 5001 < 9000.

Common wrong answers

  • 83: Allowing first digit 99 as well adds 4141 more and gives 42+41=8342 + 41 = 83; but every number starting with 99 is at least 90009000, which is not less than 90009000.
  • 6: Forbidding repetition leaves 66 such numbers; the question allows repetition, so each of the last three places can take any of the five digits, giving 4242.
  • 41: Taking a third of the 125125 numbers 5abc5abc and rounding down gives 4141; the remainders are not split evenly, and exactly 4242 of them are multiples of 33.

Key takeaway

The trap. Letting 99 lead, which gives numbers of 90009000 or more, outside the range.

How toppers think. They fix the forced digit first, then count the free digits by remainder classes.

Remember. A number is divisible by 33 if and only if its digit sum is.

More on Fundamental Principle of Counting