Which one of the following is the closed form for the generating function of the sequence defined below?
GATE CSE 2022Combinatory › Recurrence Relations & Generating FunctionsVerified
(A) x ( 1 + x 2 ) ( 1 − x 2 ) 2 + 1 1 − x \frac{x(1+x^{2})}{(1-x^{2})^{2}} + \frac{1}{1-x} ( 1 − x 2 ) 2 x ( 1 + x 2 ) + 1 − x 1
Separate the sequence into even-indexed and odd-indexed terms, find the generating function of each part, and then compare the simplified sum with the given options.
The generating function is $\frac{1}{1-x^2}+\frac{2x}{(1-x^2)^2}=\frac{1+2x-x^2}{(1-x^2)^2}$. Only option A is algebraically equivalent to this expression; option D is close but has an extra $-x^3$ term.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.