Solveeit Logo

Question

Question: The number of integers which lie between 1 and 10<sup>6</sup> and which have the sum of the digits e...

The number of integers which lie between 1 and 106 and which have the sum of the digits equal to 12 is-

A

8550

B

5382

C

6062

D

8055

Answer

6062

Explanation

Solution

Consider the product (x0 + x1 + x2 +….+ x9) (x0 + x1 + x2 + ….. + x9) … 6 factors. The number of ways in which the sum of the digits will be equal to 12 is equal to the coefficient of x12 in the above product. So, required number of ways

= coeff. of x12 in (x0 + x1 + x2 + …. + x9)6

= coeff. of x12 in (1x101x)6\left( \frac{1 - x^{10}}{1 - x} \right)^{6}

= coeff. of x12 in (1 – x10)6 (1 – x)–6

= coeff. of x12 in (1 – x)–6 (1 – 6C1 x10 +….)

= coeff. of x12 in (1 – x)–66C1 . coeff. of x2 in (1 – x)–6

= 12 + 6 – 1C6 – 16C1 × 2 + 6 – 1C6 – 1 = 17C5 – 6 × 7C5 = 6062.