GateAI
Combinatorics

GATE CSE 2018 · Q1

MCQ1 markEasy

Time

Which one of the following is a closed form expression for the generating function of the sequence {an}\{a_n\}, where an=2n+3a_n = 2n + 3 for all n=0,1,2,…n = 0, 1, 2, \dots ?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) (3-x)/((1-x)2)

Combinatorics

The ordinary generating function $G(x)$ for the sequence $\{a_n\}$ is defined as:

G(x)=∑n=0∞anxn=∑n=0∞(2n+3)xnG(x) = \sum_{n=0}^{\infty} a_n x^n = \sum_{n=0}^{\infty} (2n + 3)x^n

Splitting the summation:

G(x)=2∑n=0∞nxn+3∑n=0∞xnG(x) = 2\sum_{n=0}^{\infty} n x^n + 3\sum_{n=0}^{\infty} x^n

Using standard generating functions:

  • ∑n=0∞xn=11−x\sum_{n=0}^{\infty} x^n = \frac{1}{1-x}

  • ∑n=0∞nxn=xddx(11−x)=x(1−x)2\sum_{n=0}^{\infty} n x^n = x \frac{d}{dx}\left(\frac{1}{1-x}\right) = \frac{x}{(1-x)^2}

Substitute these into $G(x)$:

G(x)=2x(1−x)2+31−x=2x+3(1−x)(1−x)2=3−x(1−x)2G(x) = \frac{2x}{(1-x)^2} + \frac{3}{1-x} = \frac{2x + 3(1-x)}{(1-x)^2} = \frac{3-x}{(1-x)^2}

Hence, (D) is the correct option.

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 Q1 of the GATE CSE 2018 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. 2 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2018.

How GATE tests Combinatorics

More from GATE CSE 2018

Share this solution

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

GateAI solution cardGATE CSE 2018 · Q1 · MCQ

Which one of the following is a closed form expression for the generating function of the sequence {an}, where an = 2n + 3 for all n = 0, 1, 2, ?

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.