Question

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 ?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2018 answer key

Solution

Use the standard generating function series expansions for constant and linear terms.

The generating function G(x)G(x) for a sequence {an}\{a_n\} is defined as:

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

Recall the standard closed-form expressions:

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

Taking the derivative with respect to xx and multiplying by xx:

∑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):

G(x)=2(x(1−x)2)+3(11−x)=2x+3(1−x)(1−x)2=2x+3−3x(1−x)2=3−x(1−x)2G(x) = 2 \left(\frac{x}{(1-x)^2}\right) + 3 \left(\frac{1}{1-x}\right) = \frac{2x + 3(1-x)}{(1-x)^2} = \frac{2x + 3 - 3x}{(1-x)^2} = \frac{3 - x}{(1-x)^2}
Final answer

D

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2018 Computer Science and Information Technology (CS)
Question
11 of 65, printed as CS Q.1
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.