s5.2.6
Counting Problems with Digits
1,000 questions
"How many 3-digit numbers have digits summing to ?" is a stars-and-bars count with a constraint: the leading digit cannot be zero and no digit exceeds 9.
Substitute so the leading digit starts at zero, then count solutions of with each at most 9. Without the upper bound that is ; subtract the cases where one variable exceeds 9.
For small the bound never bites, so the answer is just .