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
4
votes
1 answer

Generating function for $\sum_i x^i i^n$

I am trying to find a generating function for the following family of infinite sums: $$F_n(x)= \sum_{i \geq 0} x^i i^n$$ Solving for small $n$ is trivially done by hand. I entered the sum into WolframAlpha for small $n$, and noticed that it always…
4
votes
3 answers

What is a generating function?

What is a generating function? In the answer to this question this series comes up. Its generating function is $$A(x) = \sum_{k\ge0} \frac{x^{4^k}}{1-x^{4^k}}$$ Which I took to mean the $x$th element of the series is given by $A(x)$ I guess that is…
4
votes
2 answers

Finding coefficient of $x^{15}$

$$(x+x^2+x^3+x^4+x^5)\cdot (x^2+x^3+x^4+…)^5$$ I have done a little : $$x(1 + x+x^2+x^3+x^4)\cdot x^{10}(1 + x^2+x^3+…)^5$$ By generating functions: $$\begin{align}&x^{11}\cdot\frac{1 - x^5}{1-x}\cdot\frac{1}{(1-x)^5}\\[1ex] \implies &x^{11}(1 -…
Johnathan
  • 323
4
votes
2 answers

A Problem with the Generating Function of Fibonacci.

So basically I want to find the closed form of $G_n = \sum_{k = 1}^n \binom{n+k - 1}{2k-1}$. After checking for $n = 1,2,3,4$ the values are $1, 3, 8, 21$ respectively. I claim that it is $F_{2n}$ where $F_0 = 0, F_1 = 1$ and $F_n = F_{n-1} +…
Alan Yan
  • 1,456
4
votes
2 answers

If a generating function for $f(n)$ is rational, $f(n)$ cannot be more than exponential.

If I have a generating function for $f(n)$ defined by $g(x)=\displaystyle\sum_{n=0}^{\infty}f(n)x^n=\dfrac{P(x)}{Q(x)}$, where $P(x)$ and $Q(x)$ are polynomials and $Q(x)$ is not the zero function, how could I show that $f(n)$ is not more than…
alo
  • 41
4
votes
1 answer

Generating function. Problem with understanding.

Let $F_0, F_1, F_2, ...$ be the Fibonacci numbers and let $f$ be the function defined $$f(x) = \frac{x}{1-x(1+x)}$$ Solution: The function $f$ is called the "generating function of the sequence $F_0, F_1, F_2, ...$ it is a "formal" algebraic…
user180834
  • 1,453
3
votes
1 answer

Can one prove that a generating function has infinitely many coefficients equaling 0?

Given a generating function (ordinary, exponential, or otherwise) such as $$ G(a_n;\, x) := \sum_{n=0}^\infty a_nx^n $$ where one or more $a_n = 0$, is there any way to prove that $G$ does or does not have an infinite number of zeros (i.e., there is…
Kieren MacMillan
  • 7,889
  • 2
  • 28
  • 70
3
votes
3 answers

Find closed formula $f(n)$ from generating function

I'm asked to find a closed formula for $f(n)=6f(n-1)-9f(n-2)$ for $n>1$ with $f(0)=-1. f(1)=0$, using the ordinary generating function $F(X)$. I found $F(X)=-1/(1-3x)^2$ but from there I don't manage to get a satisfactory formula for $f(n)$. Can…
3
votes
1 answer

Find the generating function for the sequence ${1, 2, 1, 4, 1, 8, ...}$

I have tried a few basic technique. But it seems still can't come up with a closed form for this sequence ${1, 2, 1, 4, 1, 8, ...}$. See if anyone can give me a hint?
3
votes
2 answers

Extracting coefficients from a generating function

Recently, I found that the generating function for a sequence I am interested in is $$s(x) = -\frac{3 \, x^{3} + x^{2} + 2 \, x}{2 \, x^{3} + x - 1}.$$ Naturally, I am now keen on extracting the $n$th coefficient of the Taylor expansion of $s(x)$…
Malte
  • 39
3
votes
3 answers

Prove that if $a_0 = 1$ and $a_n = n^2 a_{n-1} + n!^2$, then $a_n = n! (n+1)!$ using generating functions

The problem statement is above. I know via OEIS that this is true but don't know how to prove it. So far, I have: $$\sum_{n \ge 1} a_n \frac{x^n}{n!} = \sum_{n \ge 1} n^2 a_{n-1} \frac{x^n}{n!} + \sum_{n \ge 1} n! \cdot x^n.$$ This rewrites itself…
3
votes
1 answer

Divergent Power Series

In "Generatingfunctionology", Wilf says that the divergent power series $A(x) = \sum_{k=0}^{\infty}k!x^k$ has many applications as a formal power series even though it is divergent. However, as far as I have seen he has not explicitly mentioned any…
frgt
  • 325
3
votes
1 answer

Extracting the coefficient from a generating function

Consider (for fixed $r$) the following function: $$f(z) = \frac{1}{1-z-z^2-\cdots-z^r} = \frac{1}{1-z\frac{1-z^r}{1-z}}=\sum_{j=0}^\infty\left(z\frac{1-z^r}{1-z}\right)^j$$ (Assume everything is ok with regards to convergence.) The text I am reading…
angryavian
  • 89,882
3
votes
1 answer

How to intuitively understand the concept of Hand, Deck , Card and exponential family

I am reading Generating Functionology by Herbert S. Wilf in around page -75, he defines the following objects: Definition. A card C(S, p) is a pair consisting of a finite set S (the ‘label set’) of positive integers, and a picture $p \in P$. The…
3
votes
1 answer

Multivariate generating function for coprimes

I have learnt $f(x,y)=\sum_{m,n \in \mathbb{N}}x^ny^m$ has a closed form $\frac{1}{1-x}.\frac{1}{1-y}$, but if I modified a little bit by defining a charateristic function for coprime indexes: $a(m,n)=1$ if $(m,n)=1$ and $a(m,n)=0$, otherwise, then…
Markiff
  • 169
1
2
3
21 22