Which one of the following is the closed form for the generating function of the sequence defined below?
- (A)
- (B)
- (C)
- (D)
Which one of the following is the closed form for the generating function of the sequence defined below?
ANSWER
The closed form is , option (A).
Official answer: ASource: Official answer key, GATE 2022 CS (IIT Kharagpur)
Write , so the sequence is The all-ones part is for every , and the extra part is at odd and at even .
The all-ones part has generating function .
The extra part is . First, .
Multiplying each coefficient by corresponds to the operator , so .
Differentiate: .
Hence the extra part is .
Add the two parts: , which is option (A).
Check: , so the coefficient of is and of is . Option (B) would give at , which is wrong, and (C) and (D) give and at but fail at (coefficients and against ).
KEY IDEA
Split the sequence into a constant part and an odd-index part. Get the odd-index part by applying to , the generating function of the odd powers.
WATCH OUT FOR
Forgetting that is a coefficient multiplier only on odd terms and using or . Also, differentiating and getting is the series for , which is not the extra part here.
From the GATE 2022 CS paper. Every question of this paper · Download the full paper · All 3 Recurrences questions, with notes