The number of seven digit positive integers formed using the digits 1, 2, 3 and 4 only and sum of the digits equal to 12 is _____.
Answer: 413
Solution
The count equals the number of solutions of with each . Putting turns this into with each . Without the upper bound the number of non-negative solutions is . The bound fails only when some ; fixing such a variable leaves a sum of to distribute, giving solutions, and with choices of variable this removes . Two variables cannot both reach since the total is only , so the number of integers is .
JEE Main · 2023 · 13 Apr 2023 · Shift 1 · Integer answer