MCQ · 2 marks · Discrete Mathematics

GATE CS 2022 CS — Q36

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

an={n+1,n is odd1,otherwisea_n = \begin{cases} n+1, & n \text{ is odd} \\ 1, & \text{otherwise} \end{cases}
Select one option