Analyzing the Setup
We are tasked with finding the number of integers between 100 and 1000 whose digits sum to 14. Let the three-digit integer be represented as abc.
The range 100 to 1000 implies that
a is the hundreds digit,
b is the tens digit, and
c is the units digit. The condition is defined by the equation:
a+b+c=14
The constraints are the heart of the problem. Since a is the leading digit, it cannot be zero, so 1≤a≤9. The other digits, b and c, range from 0≤b≤9 and 0≤c≤9.
The Art of Substitution
To utilize generating functions effectively, we shift the variables to start from zero. Let a=a′+1, where a′≥0.
Substituting this into our sum, we get
(a′+1)+b+c=14, which simplifies to:
a′+b+c=13
The new constraints are 0≤a′≤8, 0≤b≤9, and 0≤c≤9. We are now looking for the number of non-negative integer solutions to this equation.
The Generating Function Magic
The number of solutions is the coefficient of x13 in the product of the polynomials representing the choices for each digit. For a′, the choices are (1+x+x2+⋯+x8). For b and c, the choices are (1+x+x2+⋯+x9).
We seek the coefficient of
x13 in the expression:
P(x)=(1+x+⋯+x8)(1+x+⋯+x9)2
Using the geometric series formula
∑i=0n−1xi=1−x1−xn, we rewrite the expression as:
P(x)=(1−x1−x9)(1−x1−x10)2=(1−x9)(1−x10)2(1−x)−3
The Expansion and Final Victory
Expanding the numerator, we obtain:
(1−x9)(1−2x10+x20)=1−x9−2x10+2x19+x20−x29
Since we only require the coefficient of x13, we ignore terms with powers greater than 13. This leaves us with the relevant part of the numerator: (1−x9−2x10).
We multiply this by the expansion of
(1−x)−3, which is given by the series
∑k=0∞(2k+2)xk. To find the coefficient of
x13, we calculate:
1⋅(213+2)−1⋅(213−9+2)−2⋅(213−10+2)
Calculating these binomial coefficients:
(215)=105,(26)=15,2⋅(25)=20
Finally, we perform the subtraction:
105−15−20=70
There are exactly 70 such integers.