Question
Question: The number of integers, between 100 and 1000 having the sum of their digits equals use coefficient ...
The number of integers, between 100 and 1000 having the sum of their digits equals use coefficient method
70
Solution
To find the number of integers between 100 and 1000 having the sum of their digits equal to 14, we are looking for 3-digit numbers N=abc, where a is the hundreds digit, b is the tens digit, and c is the units digit.
The constraints on the digits are:
- a∈{1,2,…,9} (since it's a 3-digit number, a cannot be 0)
- b∈{0,1,…,9}
- c∈{0,1,…,9}
The condition is a+b+c=14.
We will use the coefficient method (generating functions) to solve this problem.
The generating function for each digit represents the possible values it can take:
- For digit a: Ga(x)=x1+x2+…+x9=x(1+x+…+x8)=x1−x1−x9
- For digit b: Gb(x)=x0+x1+…+x9=1−x1−x10
- For digit c: Gc(x)=x0+x1+…+x9=1−x1−x10
The generating function for the sum a+b+c is the product of these individual generating functions:
G(x)=Ga(x)⋅Gb(x)⋅Gc(x)
G(x)=(x1−x1−x9)(1−x1−x10)(1−x1−x10)
G(x)=x(1−x)3(1−x9)(1−x10)2
We need to find the coefficient of x14 in the expansion of G(x). This is equivalent to finding the coefficient of x13 in the expression (1−x)3(1−x9)(1−x10)2.
First, expand the numerator:
(1−x9)(1−x10)2=(1−x9)(1−2x10+x20)
=1−2x10+x20−x9+2x19−x29
Rearranging by powers:
=1−x9−2x10+2x19+x20−x29
Now, we need the coefficient of x13 in:
(1−x9−2x10+2x19+x20−x29)(1−x)−3
Recall the generalized binomial theorem for negative exponents:
(1−z)−n=∑k=0∞(kn+k−1)zk=∑k=0∞(n−1n+k−1)zk
For (1−x)−3, we have n=3, so the coefficient of xk is (3−13+k−1)=(2k+2).
We look for terms in the product that contribute to x13:
-
From 1⋅(1−x)−3: We need the coefficient of x13 from (1−x)−3.
This is (213+2)=(215)=215×14=105.
-
From −x9⋅(1−x)−3: We need the coefficient of x13−9=x4 from (1−x)−3.
This is −1×(24+2)=−(26)=−26×5=−15.
-
From −2x10⋅(1−x)−3: We need the coefficient of x13−10=x3 from (1−x)−3.
This is −2×(23+2)=−2×(25)=−2×25×4=−2×10=−20.
-
The terms 2x19, x20, and −x29 have powers greater than 13, so they will not contribute to the coefficient of x13.
Summing the contributions:
Total coefficient = 105−15−20=70.
Thus, there are 70 integers between 100 and 1000 whose digits sum to 14.