QlarIITy

MathematicsJEE Main 2026 · 2 AprilSingle correct

The number of seven-digit numbers, that can be formed by using the digits 11, 22, 33, 55 and 77 such that each digit is used at least once, is:

  1. Option A: 1540015400
  2. Option B: 1780017800
  3. Option C: 1680016800
  4. Option D: 2940029400
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. When every symbol must appear, the spare places decide the repetition patterns, and each pattern is a permutation with repeated objects.

Concept refresher. The number of arrangements of nn objects in which kk kinds repeat p1,p2,…,pkp_1, p_2, \ldots, p_k times is

n!p1!p2!⋯pk!\frac{n!}{p_1!p_2!\cdots p_k!}

where every other object is used once. Equivalently, the number of strings of length nn from mm symbols that use every symbol is ∑j=0m(−1)j(mCj)(m−j)n\sum_{j=0}^{m} (-1)^j\left({}^mC_j\right)(m - j)^n (inclusion and exclusion).

Approach. Five digits must each appear in seven places, so exactly two places hold repeats; list the two repetition patterns, count each, and add.

  1. Step 1: Find the repetition patterns

    Each of the five digits appears at least once, which fills five places; the other two places repeat digits. So the counts of the digits are either

    3,1,1,1,1 or 2,2,1,1,13, 1, 1, 1, 1 \text{ or } 2, 2, 1, 1, 1
  2. Step 2: Count one digit used three times

    Choose the digit that appears three times in 55 ways, then arrange the seven digits with that one repeated:

    5×7!3!=5×840=42005 \times \frac{7!}{3!} = 5 \times 840 = 4200
  3. Step 3: Count two digits used twice

    Choose the two digits that appear twice in 5C2=10{}^5C_2 = 10 ways, then divide by 2!2! for each repeated pair:

    10×7!2!2!=10×1260=1260010 \times \frac{7!}{2!2!} = 10 \times 1260 = 12600
  4. Step 4: Add the two cases

    The patterns do not overlap, so the total is

    4200+12600=168004200 + 12600 = 16800

Answer. (C) 16800

Sanity check. Inclusion and exclusion over the missing digits gives the same count:

57−5×47+10×37−10×27+5=78125−81920+21870−1280+5=16800\begin{aligned} &5^7 - 5 \times 4^7 + 10 \times 3^7 - 10 \times 2^7 + 5 \\[4pt] &= 78125 - 81920 + 21870 - 1280 + 5 \\[4pt] &= 16800 \end{aligned}

Why the other options are wrong

  • (A) A total of 1540015400 would need 12600+280012600 + 2800, but the pattern with one digit used three times gives 5×7!3!=42005 \times \frac{7!}{3!} = 4200, not 28002800, so the total is 1680016800.
  • (B) A total of 1780017800 is 10001000 more than 4200+126004200 + 12600; no other pattern exists, since 7=3+1+1+1+17 = 3 + 1 + 1 + 1 + 1 and 7=2+2+1+1+17 = 2 + 2 + 1 + 1 + 1 are the only ways to share seven places among five digits used at least once.
  • (D) Dividing by only one 2!2! for two repeated pairs gives 5C2×7!2!=25200{}^5C_2 \times \frac{7!}{2!} = 25200, and 25200+4200=2940025200 + 4200 = 29400; each doubled digit needs its own 2!2!.

Key takeaway

The trap. Two digits used twice need a 2!2! for each of them, not a single 2!2!.

How toppers think. They check the case count with inclusion and exclusion, which needs no case split at all.

Remember. Strings of length nn from mm symbols using every symbol number ∑j=0m(−1)j(mCj)(m−j)n\sum_{j=0}^{m} (-1)^j\left({}^mC_j\right)(m - j)^n.

More on Inclusion–Exclusion Principle