QlarIITy

MathematicsJEE Main 2026 · 23 JanuaryInteger

Let SS denote the set of 44-digit numbers abcdabcd such that a>b>c>da > b > c > d and PP denote the set of 55-digit numbers having product of its digits equal to 2020. Then n(S)+n(P)n(S) + n(P) is equal to ______

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 strictly ordered digit string is just a selection of digits.

Concept refresher. The number of ways to choose rr objects from nn distinct ones is

nCr=n!r!(n−r)!{}^nC_r = \frac{n!}{r!(n - r)!}

for 0≤r≤n0 \leq r \leq n. The number of arrangements of nn objects in which groups of pp, qq, …\ldots objects are alike is

n!p!q!…\frac{n!}{p!q!\ldots}

where every object is counted in exactly one group.

Approach. Count SS as selections of four distinct digits, and PP by listing the digit multisets with product 2020 and arranging each.

  1. Step 1: Count S

    Any 44 different digits from {0,1,…,9}\{0, 1, \ldots, 9\}, written in decreasing order, give exactly one number abcdabcd with a>b>c>da > b > c > d; aa is the largest, so it is never 00:

    n(S)=10C4=210n(S) = {}^{10}C_4 = 210
  2. Step 2: List the digit patterns for P

    20=22⋅520 = 2^2 \cdot 5. The digit 55 must appear once; the factor 44 is a single digit 44 or two digits 2,22, 2; the remaining places are filled with the digit 11:

    {5,4,1,1,1}, {5,2,2,1,1}\{5, 4, 1, 1, 1\}, \ \{5, 2, 2, 1, 1\}
  3. Step 3: Arrange each pattern

    None of these digits is 00, so every arrangement is a valid 55-digit number:

    {5,4,1,1,1}:5!3!=20{5,2,2,1,1}:5!2!2!=30\begin{aligned} \{5, 4, 1, 1, 1\} &: \frac{5!}{3!} = 20 \\[4pt] \{5, 2, 2, 1, 1\} &: \frac{5!}{2!2!} = 30 \end{aligned}

    So n(P)=50n(P) = 50 and n(S)+n(P)=210+50=260n(S) + n(P) = 210 + 50 = 260.

Answer. 260

Sanity check. A brute-force count over all 44-digit and 55-digit numbers gives 210210 and 5050 as well. Small check: the decreasing numbers using only the digits 00 to 44 are 5C4=5{}^5C_4 = 5, namely 32103210, 42104210, 43104310, 43204320, 43214321.

Common wrong answers

  • 176: Leaving out the digit 00 gives n(S)=9C4=126n(S) = {}^{9}C_4 = 126 and 126+50=176126 + 50 = 176; but 00 can be dd, the smallest digit, as in 98709870, and aa is never 00.
  • 240: Using only the pattern {5,2,2,1,1}\{5, 2, 2, 1, 1\} gives n(P)=30n(P) = 30 and 210+30=240210 + 30 = 240; the pattern {5,4,1,1,1}\{5, 4, 1, 1, 1\} adds 2020 more.
  • 230: Using only the pattern {5,4,1,1,1}\{5, 4, 1, 1, 1\} gives n(P)=20n(P) = 20 and 230230; the pattern {5,2,2,1,1}\{5, 2, 2, 1, 1\} adds 3030 more.

Key takeaway

The trap. Excluding 00 from SS; it can be the last digit, as in 98709870.

How toppers think. They factorise the product into primes and list the digit patterns before arranging.

Remember. Arrangements of nn objects with repeats of sizes p,q,…p, q, \ldots number n!p!q!…\frac{n!}{p!q!\ldots}.

More on Combinations