GATE 2018 CS – Question 11
Which one of the following is a closed form expression for the generating function of the sequence $\{a_n\}$, where $a_n=2n+3$ for all $n=0,1,2,\dots$?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) $\dfrac{3-x}{(1-x)^2}$
Explanation
$\sum2nx^n=\frac{2x}{(1-x)^2}$ and $\sum3x^n=\frac{3}{1-x}=\frac{3(1-x)}{(1-x)^2}$. The sum is $\frac{2x+3-3x}{(1-x)^2}=\frac{3-x}{(1-x)^2}$.