Which one of the following is the closed form for the generating function of the sequence { an }n ≥ 0 defined below? an = n+1, & n is odd 1, & otherwise
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q36
Time
Select one answerSingle correct
Solution
Official answer: A) (x(1+x2))/((1-x2)2) + (1)/(1-x)
CombinatoricsThe sequence terms are:
For even :
For odd :
We can split as , where:
The generating function can be expressed as:
The first sum is the standard geometric series:
For the second sum, consider:
Differentiating with respect to :
Multiplying by gives the desired odd-power series:
Combining both terms:
Thus, option (A) is correct.
Try the question first, then check your work.
Examiner trap
Split into for all and an additional for odd . Differentiate the series for to find the generating function of odd index multipliers.
This Combinatorics previous year question is Q36 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Combinatorics in Engineering Mathematics, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Combinatorics PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Combinatorics has 19 GATE CSE PYQs across 15 papers from 2012 to 2025. 5 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2022.
How GATE tests CombinatoricsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.