Find the number of n-digit numbers whose sum of the digits is 11.
How do I go about approaching this question, using P.I.E?
This is what I tried.
n = 11, when 1 + 1 + 1 + ... + 1 n = 2 when 5 + 6
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityFind the number of n-digit numbers whose sum of the digits is 11.
How do I go about approaching this question, using P.I.E?
This is what I tried.
n = 11, when 1 + 1 + 1 + ... + 1 n = 2 when 5 + 6
This is just stars and bars over the digits of the $n$-digit number, under the condition that the highest digit is non-zero.
So, the question is equivalent to asking how many ways are there to pick non-negative solutions to $$x_1+x_2+...+x_n=10$$To which the answer is $$n+9\choose 10$$
The issue is that we need to ensure that $x_1<9$, $x_2,...,x_n<10$. So, that is a total of $2n-1$ cases to remove. So our final answer is $$\color{red}{{n+9\choose10}-2n+1}$$