Skip to content

GATE CS 2005 Q50 — Combinatorics: Counting, Recurrence Relations, Generating Functions

Explain with AI

Let G(x)=1(1−x)2=∑i=0∞g(i)xiG(x) = \frac{1}{(1-x)^2} = \sum\limits_{i=0}^\infty g(i)x^i, where ∣x∣<1|x| < 1. What is g(i)g(i)?

Choose one option
View worked solution

Answer: B

We are given the generating function:

G(x)=1(1−x)2=∑i=0∞g(i)xiG(x) = \frac{1}{(1-x)^2} = \sum_{i=0}^\infty g(i)x^i

We can find the coefficients g(i)g(i) using the standard infinite geometric series expansion for ∣x∣<1|x| < 1:

11−x=∑i=0∞xi=1+x+x2+x3+…\frac{1}{1-x} = \sum_{i=0}^\infty x^i = 1 + x + x^2 + x^3 + \dots

Differentiating both sides with respect to xx gives:

ddx(11−x)=ddx(∑i=0∞xi)\frac{d}{dx}\left(\frac{1}{1-x}\right) = \frac{d}{dx}\left(\sum_{i=0}^\infty x^i\right)

1(1−x)2=∑i=1∞ixi−1\frac{1}{(1-x)^2} = \sum_{i=1}^\infty i x^{i-1}

To write this in the form ∑i=0∞g(i)xi\sum_{i=0}^\infty g(i)x^i, we shift the summation index by setting j=i−1j = i - 1 (which means i=j+1i = j + 1):

1(1−x)2=∑j=0∞(j+1)xj\frac{1}{(1-x)^2} = \sum_{j=0}^\infty (j+1) x^j

Replacing the dummy variable jj back with ii, we get:

G(x)=∑i=0∞(i+1)xiG(x) = \sum_{i=0}^\infty (i+1) x^i

Comparing this with the given definition G(x)=∑i=0∞g(i)xiG(x) = \sum_{i=0}^\infty g(i)x^i, we find:

g(i)=i+1g(i) = i + 1

Thus, the correct option is B.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinatorics: Counting, Recurrence Relations, Generating Functions questions