MCQ · 2 marks · Discrete MathematicsGATE CS 2022 CS — Q36Which one of the following is the closed form for the generating function of the sequence {an}n≥0\{a_n\}_{n \ge 0}{an}n≥0 defined below?an={n+1,n is odd1,otherwisea_n = \begin{cases} n+1, & n \text{ is odd} \\ 1, & \text{otherwise} \end{cases}an={n+1,1,n is oddotherwiseSelect one optionA.x(1+x2)(1−x2)2+11−x\frac{x(1+x^2)}{(1-x^2)^2} + \frac{1}{1-x}(1−x2)2x(1+x2)+1−x1B.x(3−x2)(1−x2)2+11−x\frac{x(3-x^2)}{(1-x^2)^2} + \frac{1}{1-x}(1−x2)2x(3−x2)+1−x1C.2x(1−x2)2+11−x\frac{2x}{(1-x^2)^2} + \frac{1}{1-x}(1−x2)22x+1−x1D.x(1−x2)2+11−x\frac{x}{(1-x^2)^2} + \frac{1}{1-x}(1−x2)2x+1−x1Check answer