Answer: B
We are given the generating function:
G(x)=(1−x)21=i=0∑∞g(i)xi
We can find the coefficients g(i) using the standard infinite geometric series expansion for ∣x∣<1:
1−x1=i=0∑∞xi=1+x+x2+x3+…
Differentiating both sides with respect to x gives:
dxd(1−x1)=dxd(i=0∑∞xi)
(1−x)21=i=1∑∞ixi−1
To write this in the form ∑i=0∞g(i)xi, we shift the summation index by setting j=i−1 (which means i=j+1):
(1−x)21=j=0∑∞(j+1)xj
Replacing the dummy variable j back with i, we get:
G(x)=i=0∑∞(i+1)xi
Comparing this with the given definition G(x)=∑i=0∞g(i)xi, we find:
g(i)=i+1
Thus, the correct option is B.