Skip to main content

GATE CSE 2018Combinatory › Recurrence Relations & Generating FunctionsVerified

GATE CSE 2018 PYQ: Which one of the following is a closed form expression for the generating function of the sequence { a n }…

Which one of the following is a closed form expression for the generating function of the sequence {an}\{a_n\}, where an=2n+3 for all n=0,1,2,…a_n = 2n +3 \text{ for all } n=0, 1, 2, \dots?

  1. A
    3(1−x)2\frac{3}{(1-x)^2}
  2. B
    3x(1−x)2\frac{3x}{(1-x)^2}
  3. C
    2−x(1−x)2\frac{2-x}{(1-x)^2}
  4. D
    3−x(1−x)2\frac{3-x}{(1-x)^2}
    Correct answer

Answer

(D) 3 − x ( 1 − x ) 2 \frac{3-x}{(1-x)^2} ( 1 − x ) 2 3 − x ​

Approach

Use the definition of an ordinary generating function and decompose it by linearity into a constant part and a linear part, then apply standard power-series identities.

The sequence is $a_n=2n+3$, so its ordinary generating function is $\sum(2n+3)x^n$. Using standard identities gives $G(x)=\frac{2x}{(1-x)^2}+\frac{3}{1-x}=\frac{3-x}{(1-x)^2}$. Hence option D is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.