IAE Academy

GATE 2018 CS Q.1: solution and answer

GATE 2018 · CSQ.1 · 1 mark · MCQ

Which one of the following is a closed form expression for the generating function of the sequence , where for all ?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

ANSWER

The generating function is , which is option (D).

Official answer: DSource: Official answer key, GATE 2018 CS (IIT Guwahati)

  1. The generating function is . Split it into .

  2. Geometric series: for , so the constant part gives .

  3. Differentiate the geometric series: . Multiply by : . So the part gives .

  4. Add over the common denominator:

  5. 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

More Recurrences questions