Skip to main content

GATE CSE 2022Combinatory › Recurrence Relations & Generating FunctionsVerified

GATE CSE 2022 PYQ: Which one of the following is the closed form for the generating function of the sequence { a n } n ≥ 0 \{…

Which one of the following is the closed form for the generating function of the sequence {an}n≥0\{ a_{n} \}_{n \geq 0} defined below?

an={n+1,n is odd1,otherwise a_{n} = \left\{\begin{matrix} n + 1, & \text{n is odd} & \\ 1, & \text{otherwise} & \end{matrix}\right.

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

Answer

(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 ​

Approach

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.