Solveeit Logo

Question

Question: The numbers of integers between 1 and 10<sup>6</sup> have the sum of their digit equal to K(where 0 ...

The numbers of integers between 1 and 106 have the sum of their digit equal to K(where 0 < K < 18) is –

A

(K + 6)C6(K – 4)C6

B

KC6 – 6 · KC4

C

KC6 – 6 · K – 4C6

D

K + 6C6 – 6 · K – 4C6

Answer

K + 6C6 – 6 · K – 4C6

Explanation

Solution

The required no. of ways = no. of solution of the equation

(x1 + x2 + x3 + x4 + x5 + x6 = K)

Where 0 £ xi £ 9, i = 1, 2, …6, where 0 < K < 18

= Coefficient of xK in (1 + x + x2 +….. + x9)6

= Coefficient of xK in (1x101x)6\left( \frac{1 - x^{10}}{1 - x} \right)^{6}

= Coefficient of xk in (1 – 6x10 + 15 x20 – ….)

(1 + 6 C1x + 7 C2 x2 + …. +(7 – K – 10 – 1)

CK–10 xK–10 + ….+(7 + K – 1) CK xK + …)

= k + 6CK – 6. K–4CK–10

= k + 6C6 – 6. K–4C6 .