Which one of the following is a closed form expression for the generating function of the sequence , where for all ?
- (A)
- (B)
- (C)
- (D)
Which one of the following is a closed form expression for the generating function of the sequence , where for all ?
ANSWER
The generating function is , which is option (D).
Official answer: DSource: Official answer key, GATE 2018 CS (IIT Guwahati)
The generating function is . Split it into .
Geometric series: for , so the constant part gives .
Differentiate the geometric series: . Multiply by : . So the part gives .
Add over the common denominator:
Check with the first two terms: and . Since , we get , which matches. The answer is option (D).
KEY IDEA
Write as a combination of and . The generating function of is , and applying to it gives the generating function of , which is . Then combine over .
WATCH OUT FOR
Forgetting the factor in , or forgetting to rewrite as before adding. Checking the first two coefficients ( and ) catches both slips.
From the GATE 2018 CS paper. Every question of this paper · Download the full paper · All 3 Recurrences questions, with notes