How many positive integers less than $1,000,000$ have the sum of their digits equal to $19$ ?
I tried to answer it by using stars and bars combinatorics method.
The question says that sum of $6$ digit numbers { considering the number as $abcdef$ } is 19.
Hence, I can write it as $a + b + c + d + e + f = 19$ ,but this assumes that $a,b,c,d,e,f >= 0$ .
But, here each digit lies between 0 and 9. So, how stars and bars method will be modified according to this domain ?