GATE / CS ARCHIVE

GATE CSE 2017 SET 2 / QUESTION 47

GATE CSE 2017 Set 2 Q47

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2017 Set 2 paper

GATE 2017 Set 2, Q47 2 marks · NAT
Report issue

Recurrences & Generating Functions

Question 47, GATE 2017: The ordinary generating function of sequence (a_n) for n≥0 is (1+z)/(1−z)³. Find a3−a0.
Tap to enlarge
Answer & solution

Official answer: 15.0

Our answer: 15

1. Use the binomial-series identity (1-z)-3=Σ(n≥0)C(n+2,2)zn. Its first coefficients are 1,3,6,10,… .

2. Multiplication by 1+z adds each coefficient to the preceding one. Thus a0=1 and a3=C(5,2)+C(4,2)=10+6=16. Directly, (1+z)(1+3z+6z²+10z³+…)=1+4z+9z²+16z³+… .

3. Therefore a3-a0=16-1=15. More generally an=C(n+2,2)+C(n+1,2)=(n+1)² for n≥1. The numerator shifts coefficients; it cannot simply be ignored when reading a3.

Original paper, page 19 · Answer key