Questions tagged [generating-functions]

Generating functions are formed by making a series $\sum_{n\geq 0} a_n x^n$ out of a sequence $a_n$. They are used to count objects in enumerative combinatorics.

A generating function is a formal power series of the form \begin{equation*} f(x)=\sum^{\infty}_{n=0}a_nx^n \end{equation*} whose coefficients contain information about $a_n$, the sequence of numbers. For instance, suppose that the sequence is the Fibonacci sequence $0,1,1,2,3,5,8,\ldots$ Then$$f(x)=x+x^2+2x^3+3x^4+5x^5+\cdots,$$$$xf(x)=x^2+x^3+2x^4+3x^5+\cdots,$$and$$x^2f(x)=x^3+x^4+2x^5+\cdots.$$Then, it follows from the definition of the Fibonacci sequence that$$(1-x-x^2)f(x)=x$$This fact can be used to prove properties of the sequence, such as that its $n^\text{th}$ term is$$F_n = \frac{\varphi^n-(-\varphi)^{-n}}{\sqrt5},$$where $\varphi$ is the golden ratio.

4469 questions
2
votes
2 answers

Find $a_n$ in terms of $b_n$ given $b_n = \sum_{k=0}^{n} {n \choose k} a_k$

Given sequences $a_n$ and $b_n$ satifying $$b_n = \sum_{k=0}^{n} {n \choose k} a_k$$ I am required to find $a_n$ in terms of $b_n$ My attempt: The generating fuction for $b_n$ will be \begin{align} B(x) &= \sum_{n=0}^{\infty} \left( \sum_{k=0}^{n}…
sc_
  • 365
2
votes
2 answers

Solve $2a_{n-2} = a_n + a_{n-1}$ using generating function

Need to solve: $$2a_{n-2} = a_n + a_{n-1}$$ with: $a_0 = 0$ and $a_1=1$ I get: $$f(x) = \frac{2x^3-x^2-x}{2x^2-x-1}$$ so I tried to scompose the denominator and I get: $$f(x) = \frac{2x^3-x^2-x}{(x-1)(x+\frac{1}{2})}$$ now I think I have to use…
2
votes
0 answers

Probability generating function of $\sum_{i=1}^N X_i$ where $N$ is a a positive integer r.v.

Let $X = \sum_{i=1}^N X_i$ where all $X_i$'s are iid and $N$ and $X_i$ are independent where $N$ is a positive-valued integer r.v. Then the PGF of $X$ is $$G_{X}(s) = \mathbb{E}(s^X) $$ They simplified this down to: $$G_{X}(s) =…
2
votes
2 answers

Find the explicit formula for the numbers $a_n$

Find the explicit formula for the numbers $a_n$ if $a_0=0$ and $$a_{n+1}=(n+1)a_n+2(n+1)!. \quad n\gt 0$$ As it is suggested by @dxiv: $\;\dfrac{a_{n+1}}{(n+1)!}=\dfrac{a_n}{n!}+2\,$ My attempt: Let $$F(x)=\sum_{n\geq 0}…
Leyla Alkan
  • 2,451
2
votes
1 answer

Explicit Formula of Recurrence Relation from Generating Function

I have given following recurrence relation: $$a_{n+1} = (n+1)a_n + n!$$ where $a_0 = 0$ I had invoked given relation with exponential generating function, such as: $$g(x) = \sum_{n=0}^\infty a_n {x^n\over n!} \\= \sum_{n=1}^\infty a_n {x^n\over n!} …
snapper
  • 589
2
votes
2 answers

Ordinary Generating Function for the number of solution :$ x_1 + x_2 + \cdot\cdot\cdot + x_k = n$

Let $a_n$ be the number of solutions of the equation: $$x_1 + x_2 + \cdot\cdot\cdot + x_k = n$$ where $x_i$ is the positive odd integer. Hereto I would like to find the ordinary generating function for the sequence $a_n$ ODG has is a function…
Beverlie
  • 2,645
2
votes
4 answers

Generating functions ( recurrence relations )

Find $a_n$ using Generating Functions : $a_n = -a_{n-1} + 2a_{n−2}$, $n\ge2$ and $a_0 = 1$, $a_1 = 2$. Approach : So I will form a characteristic equation $ r^2 + r - 2 = 0$ whose roots are $r_1 = -2$, $r_2 = 1$. So my general solution is $a_n =…
Johnathan
  • 323
2
votes
1 answer

Generating Function, and Combinations

How many ways are there to obtain an even sum when 10 indistinguishable disce are rolled? hint: let $x_i$ be the number of dice showing the number $i$. OK, so the answer is $(\frac{1}{1-z})^3…
2
votes
0 answers

Generating function whose coefficients are reciprocals of a known g.f.

This is a rather obvious question, but my Google-fu is failing me. Given that $F(z) = \sum_{n=1}^{\infty} a_n z^n$, can one say anything about $G(z) = \sum_{n=1}^{\infty} \frac{1}{a_n} z^n$? In particular, I'm looking for a solution to this question…
2
votes
2 answers

Find the generating function for $\displaystyle \sum_{k = 0}^{\infty} x^{k^2}$

I've tried equating the coefficients of the rational expression below but cannot terminate the coefficients i.e. find a finite $N$ and $M$: $$ \sum_{k = 0}^{\infty} x^{k^2} = \frac{\displaystyle \sum_{k = 0}^{N} b_k x^k}{1 + \displaystyle \sum_{k…
user186104
2
votes
0 answers

How many extrema does a sequence, defined by a generating function, have?

Let $g(s)=\sum_{n=0}^{\infty} a_n s^n$ be a generating function. $i$ is said to be an extremum of $a_n$, if $a_{i-1} < a_i > a_{i+1}$ or $a_{i-1} > a_i < a_{i+1}$. Is there a general method to determine the number of extrema of $a_n$ based on…
2
votes
3 answers

Generating function for an Arithmetic mean

I want to find out, how many ways I can produce an average 4.6 of 13 numbers, when I have only numbers {1,2,3,4,5}. I thought, that it could be done by generating functions, but since my knowledge on them isn't very deep yet, I'm a little lost. Also…
2
votes
4 answers

generating function for $\sum\limits_k \frac{x^k}{k^2}$?

Does anyone know the generating function $f$ of $$f(x) = \sum_{k=1}^{\infty} \frac{x^k}{k^2}$$ How can we get it? Thanks!
Joanne
  • 109
2
votes
1 answer

Find $G_a(x)$ for $a_n={4^{3n-5}\over3^{2n+4}}$

I don't really know where to begin on this one. I haven't gotten very far but I feel like with a few hints I should at least be able to start solving this.
2
votes
1 answer

Probability Generating Function homework question

Hello Everyone i have attempted this question as a homework problem and i have a solution and wondering if anyone can confirm if this is correct. The question is: A monkey repeatedly types in any of the 26 letters of the English alphabet…
Emma
  • 147