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
Solutions · 1
Official solution
x1+x2+x3+…x7=12. This equation represents the number of ways to distribute 12 identical items (the sum of the digits) into 7 distinct boxes (the seven digits of the number), where each box can contain one of the numbers 1, 2, 3, or 4.
Number of solutions
=x12(x1+x2+x3+x4)7=x5(1+x+x2+x3)7=x5(1−x4)7(1−x)−7=x5(1−7x4)(1−x)−7=x5(1−7x4)r=0∑∞7+r−1Cr⋅xr=11C5−7×7C1=462−49=413