GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 50

Coefficients of a squared geometric series

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2005 paper

GATE 2005, Q50 2 marks · MCQ
Report issue

Recurrences & Generating Functions

Question 50, GATE 2005: The ordinary generating function of g(i), i≥0, is 1/(1−x)². Find g(i). GateForum options: A i; B i+1; C 2i; D 2^i. GFG inserts a constant-1 line before these and labels the five entries A 1; B i; C i+1; D 2i; E 2^i. Explain the coefficient rather than relying on a universal letter.
Tap to enlarge
Your answer
Answer & solution

Answer: C: i+1 (no official key was published)

Differentiate ∑(j≥0)xj=1/(1−x) for |x|<1: 1/(1−x)²=∑(j≥1)j xj−1=∑(i≥0)(i+1)xi. Thus g(i)=i+1. Preserve the mathematical answer, not a purported universal letter.

The geometric-series identity is valid as a formal power series, so differentiate coefficient by coefficient. The derivative of xj is jxj−1, and relabeling i=j−1 gives coefficient i+1. Alternatively multiplying two copies of Σxj shows that xi can be formed in i+1 ways, from pairs(0, i),(1, i−1),…,(i, 0). Both arguments yield the same coefficient and avoid the inconsistent option lettering.

Original paper, page 6