GateAI
Combinatorics

GATE CSE 2017 Set 2 · Q47

NAT2 marksMedium

Time

If the ordinary generating function of a sequence {an}n=0∞\{a_n\}_{n=0}^{\infty} is 1+z(1−z)3\frac{1+z}{(1-z)^3}, then a3−a0a_3 - a_0 is equal to ________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 15 (±0)

Combinatorics

The ordinary generating function is given by:

A(z)=∑n=0∞anzn=1+z(1−z)3A(z) = \sum_{n=0}^{\infty} a_n z^n = \frac{1+z}{(1-z)^3}

Using the standard binomial series expansion:

1(1−z)k=∑n=0∞(n+k−1k−1)zn\frac{1}{(1-z)^k} = \sum_{n=0}^{\infty} \binom{n+k-1}{k-1} z^n

For k=3k = 3:

1(1−z)3=∑n=0∞(n+22)zn=∑n=0∞(n+2)(n+1)2zn\frac{1}{(1-z)^3} = \sum_{n=0}^{\infty} \binom{n+2}{2} z^n = \sum_{n=0}^{\infty} \frac{(n+2)(n+1)}{2} z^n

Multiplying by (1+z)(1+z):

A(z)=(1+z)∑n=0∞(n+2)(n+1)2zn=∑n=0∞(n+2)(n+1)2zn+∑n=0∞(n+2)(n+1)2zn+1A(z) = (1+z) \sum_{n=0}^{\infty} \frac{(n+2)(n+1)}{2} z^n = \sum_{n=0}^{\infty} \frac{(n+2)(n+1)}{2} z^n + \sum_{n=0}^{\infty} \frac{(n+2)(n+1)}{2} z^{n+1}

Hence, the general term ana_n (for n≥1n \ge 1) is:

an=(n+2)(n+1)2+(n+1)n2=n+12(n+2+n)=(n+1)2a_n = \frac{(n+2)(n+1)}{2} + \frac{(n+1)n}{2} = \frac{n+1}{2} (n+2+n) = (n+1)^2

Calculating the required values:

  • For n=0n = 0: a0=(0+1)2=1a_0 = (0+1)^2 = 1

  • For n=3n = 3: a3=(3+1)2=16a_3 = (3+1)^2 = 16

Therefore:

a3−a0=16−1=15a_3 - a_0 = 16 - 1 = 15

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Combinatorics previous year question is Q47 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on Combinatorics in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Combinatorics PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Combinatorics in GATE CSE

Combinatorics has 19 GATE CSE PYQs across 15 papers from 2012 to 2025. 7 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2017 Set 2.

How GATE tests Combinatorics

More from GATE CSE 2017 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 2 · Q47 · NAT

If the ordinary generating function of a sequence {an}n=0∞ is (1+z)/((1-z)3), then a3 - a0 is equal to …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.