Kim’s Math NotesCourse index

JEE Advanced 2025 Paper 1 Q10 Solution

Seven-Digit Numbers from 0, 1, 2 with a Digit Exactly Twice

2025 Paper 1 Q10 Watch on YouTube ↗
KKim’s Math Notes ▶ Subscribe

Question and written solution

Question

Let S be the set of all seven-digit numbers that can be formed using the digits 0, 1 and 2. For example, 2210222 is in S, but 0210222 is NOT in S. Then the number of elements x in S such that at least one of the digits 0 and 1 appears exactly twice in x, is equal to ____.

Solution

  1. First count all seven-digit strings, allowing a leading 0. The condition only involves the digits 0 and 1; every other place is a 2, which is just background.
  2. Choose the k places that hold 0 or 1, and let L(k) be the number of 0/1 fillings with exactly two 0s or exactly two 1s. For k≠4 the two cases never overlap, so L(k)=2\binomk2; for k=4 the string 0011 has both, so L(4)=4C2=6. This gives L=2,6,6,20,30,42 for k=2,…,7.
  3. All strings: ∑\binom7kL(k)=1134. Strings starting with 2: the same count on the other 6 places, ∑\binom6kL(k)=390.
  4. Swapping every 0 with 1 keeps the condition, so strings starting with 0 and with 1 are equally many: 1134−3902=372 each.
  5. Real numbers start with 1 or 2: 372+390=762.

Answer: 762

Key idea: When the condition treats 0 and 1 alike, the answer is all+start 22.

Watch this solution on YouTube from 5:36 ↗

Past exam questions