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 _____.
We need to count seven-digit positive integers using digits with digit sum equal to 12.
Let the digits be where each and .
Substitute , so and:
We count non-negative integer solutions to with using inclusion-exclusion.
Without upper bound:
Subtract cases where at least one : Set . The remaining variables sum to . Number of solutions: . There are choices for which variable, so we subtract .
Cases where two variables : This requires sum , which is impossible. So no correction needed.
By inclusion-exclusion:
The answer is .
Tagged Combinations and selections with conditions. Machine-assigned, so read it as a strong shortlist rather than a verdict.