I had this challenge question for my perms and combs homework, but I am a bit unsure on how to go about solving it.
How many $7$-digit numbers have a digit sum of $11$?
To do this problem, I tried setting the boundaries for some digits. So, there are in total $8×9×9×9×9×9×9=4251528$ $7$-digit numbers, with a minimum digit sum of $1$ and a maximum sum of $63$.
Order of the digits is used in this equation, so I think need to use permutations, but I am stuck on what $n$ and $r$ would be for the equation, as the digit $0$ cannot be the first digit, and the sum of the digits must total $11$.
I would like some help in how to solve it.
One reference to use: Ralph P. Grimaldi:s "Discrete and Combinatorial Mathematics: An Applied Introduction".
– Ben123 Sep 24 '23 at 01:16For more information on generating functions, see the book I referenced (and there is always wikipedia).
– Ben123 Sep 24 '23 at 01:20