First slide
Combinations
Question

The number of integers between 1 and 1000000 that have the sum of the digits 18, is

Moderate
Solution

Any number between 1 and 1000000 must be of less than seven digits. Therefore, it must be of the form a1 a2 a3 a4 a5 a6

where a1, a2, a3, a4, a5, a6 ∈ {0, 1, 2, …, 9}

According to question, sum of the digits = 18

Thus, a1 + a2 + a3 + a4 + a5 + a6 = 18

where 0 ≤ ai ≤ 9, i = 1, 2, 3, …, 9.

Required number

= coefficient of x18 in 1+x+x2++x96= coefficient of x18 in 1x101x6= coefficient of x18 in 1x106(1x)6= coefficient of x18 in 16C1x10(1x)6

[leaving terms containing powers of x greater than 18]

= coefficient of x18 in (1x)66C1. coefficient of x8 in (1x)6 =6+181C1866+81C18=23C5613C8=23222120191206131211109120=336497722=25927

Get Instant Solutions
When in doubt download our app. Now available Google Play Store- Doubts App
Download Now
Doubts App