JEE Main 2026 · 2 April · morning · Single correct · +4 / −1
The number of seven-digit numbers, that can be formed by using the digits 1, 2, 3, 5 and 7 such that each digit is used at least once, is:
- (a) 15400
- (b) 17800
- (c) 16800
- (d) 29400
Answer and solution
Answer (c) 16800
Solution
Maths sir · 3 steps
Five digits fill seven places, so split the two extra places into repeat patterns and count each case.
- Find the patterns. Each of the 5 digits appears once, which fills 5 places. The 2 extra places either both repeat one digit (counts 3, 1, 1, 1, 1) or repeat two different digits (counts 2, 2, 1, 1, 1).
Pattern Choose the repeated digit(s) Arrangements Total 3, 1, 1, 1, 1 C(5, 1) = 5 7!/3! = 840 5 × 840 = 4200 2, 2, 1, 1, 1 C(5, 2) = 10 7!/(2! 2!) = 1260 10 × 1260 = 12600 - Why divide. Swapping identical digits among themselves gives the same number. So you divide 7! by the factorial of each digit's count.
- So. The total is 4200 + 12600 = 16800, which is option (c).
The idea to keep. When every item must appear at least once, first share out the extra places as count patterns. Then count each pattern with n!/(p! q!…) and add the cases.
Answer from the NTA final answer key. Solution by PrepWiser.