wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

How many integers between 1 and 1000000 have the sum of the digits equal to 18?

Open in App
Solution

Integers between 1 and 1000000 will be 1,2,3,4,5 or 6 digits.
And given the sum of digits =18
Thus we need to obtain the number of solutions of the equation
x1+x2+x3+x4+x5+x6=18...(1)
where 0xi9,i=1,2,3,4,5,6
Therefore, the number of solutions of the equation (1), will be
=Coefficient of x18 in (x0+x1+x2+x3+...+x9)6
=Coefficient of x18 in (1x101x)6
=Coefficient of x18 in (1x10)6(1x)6
=Coefficient of x18 in (16x10)(1+ 6C1x+ 7C2x2+...+ 13C8x8+...+ 23C18x18+...)
=23C186. 13C8
=23C56. 13C5
=23.22.21.20.191.2.3.4.56.13.12.11.10.9.1.2.3.4.5
=336497722
=25927

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Multinomial Theorem
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon