retagged by
22,679 views
42 votes
42 votes

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

  1. $\frac{3}{(1-x)^2}$
  2. $\frac{3x}{(1-x)^2}$
  3. $\frac{2-x}{(1-x)^2}$
  4. $\frac{3-x}{(1-x)^2}$
retagged by

11 Answers

1 votes
1 votes

With little bit of observation and practice with generating functions, one can solve it faster,

(This is one way to solve it, if have you practiced enough, i would suggest to first practice with lot of problems, then only you can see how fast the below method gets you the answer)

 

Observations:

given closed form $2n +3$ can be seen as combination of two closed form,

a linear and a constant ( 2, 3 are just shifting)

Recall:

closed form f(n)
$\frac{1}{\left ( 1-x \right )}$ $1$
$\frac{1}{\left ( 1-x \right )^{2}}$ $n + 1$

with some practice you will get used to them..

(I’m not telling you to remember these forms, when you do practice these are some basic forms which gets stick to your mind by itself.)

$a_n = 2n + 3 = 2(n+1) + 1$

closed form for the generating function will be:

$2 \times \frac{1}{\left ( 1-x \right )^{2}} + \frac{1}{\left ( 1-x \right )}$$= \frac{2 + \left (1-x \right )}{\left ( 1-x \right )^{2}} = \frac{3-x}{\left ( 1-x \right )^{2}}$

Answer:

Related questions

57 votes
57 votes
17 answers
1
Sandeep Singh asked Feb 12, 2016
25,820 views
The coefficient of $x^{12}$ in $\left(x^{3}+x^{4}+x^{5}+x^{6}+\dots \right)^{3}$ is ___________.
58 votes
58 votes
9 answers
2
Arjun asked Feb 14, 2017
17,681 views
If the ordinary generating function of a sequence $\left \{a_n\right \}_{n=0}^\infty$ is $\large \frac{1+z}{(1-z)^3}$, then $a_3-a_0$ is equal to ___________ .
2 votes
2 votes
1 answer
3