GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 1

Generating function of an arithmetic sequence

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2018 paper

GATE 2018, Q1 1 mark · MCQ
Report issue

Recurrences & Generating Functions

Question 1, GATE 2018: For a_n=2n+3, n≥0, find the ordinary generating function Σa_n x^n. Choices: A 3/(1−x)²; B 3x/(1−x)²; C (2−x)/(1−x)²; D (3−x)/(1−x)².
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Method

Start from Σxn=1/(1−x). Differentiate to obtain Σn xn−1=1/(1−x)² and multiply by x. Linearity now separates the 2n part from the constant 3 part. Combining over one denominator gives numerator 2x+3(1−x)=3−x. A quick constant-term check requires value a0=3 at x=0, already ruling out B and C.

Solution

The ordinary generating function is sum(2n+3)xn=2x/(1−x)²+3/(1−x)=(3−x)/(1−x)², D, as a formal power series or for |x|<1.

Original paper, page 4 · Answer key