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
1
vote
1 answer

Generating function: Collecting dollars from children and adults.

Here is the problem: In how many ways can I collect a total of $20$ dollars from $4$ different children and $3$ different adults, if each child can contribute up to $6$ dollars, each adult can give up to $10$ dollars, and each individual gives a…
Max0815
  • 3,505
1
vote
5 answers

About the identity $1=(1-x)(1+x+x^2+\cdots)$

I'm learning about generating function. I have trouble understanding why $$1=(1-x)(1+x+x^2+\cdots),$$ if in the second parenthesis it stop at any $k\in\mathbb N, x^k$ then an additional term $(-x)(x^k)$ will appear.
1
vote
2 answers

Elementary explanations for common terms?

I was exploring OEIS, and decided to make the following query: http://oeis.org/search?q=196680&sort=&language=english&go=Search The first 2 entries, which are sequences with generating functions $ \frac{1+x-x^2}{1-x-2x^2+x^4}$ and $…
1
vote
1 answer

How to find the $n$- th term of the generating function $\frac{1}{(1-x-x^2)}^k$?

I know how to find the $n$ -th term for $k = 1$, of $\frac{1}{\left(1-x^2-x\right)^k}$ but I want to know if there's a general formula for $k > 1$.
Mercado
  • 197
1
vote
1 answer

Understanding generating functions with multiple variables

I'm trying to understand the generating function for this sequence: Triangle read by rows, 0 <= k <= n: T(n,k) = binomial(n-[(k+1)/2],[k/2])*(-1)^[(k+1)/2]. It's a triangle, and I'm trying to find the function $F(r, x)$ such that I can substitute…
1
vote
2 answers

Generating function of $(1 + x + x^{10})^{20}$

I try to find the generating function of $(1 + x + x^{10})^{20}$. My main problem is that all the forumalas I know, based on sequence (meaning, $1 + x + x^2 + x^3+\dots$ and so on), and I don't success to convert it to any sequence.
Adam Sh
  • 271
1
vote
4 answers

How to find the generating function for $a_n = \binom{2n}{n}$?

How to find the generating function for $a_n = \binom{2n}{n}$? Using Mathematica, I get $A(z) = \frac{1}{\sqrt{1-4z}}$ and I am able to verify it. However, how to derive it, e.g., from basic generating functions?
hengxin
  • 3,687
  • 26
  • 49
1
vote
2 answers

Determining the coefficient of $x^6$ in a generating function

I've been trying to find the coefficient of $x^6$ in the generating function: $$f(x) = \dfrac 1{x(2x-1)^2}$$ I tried to separate the $\dfrac 1x$ and get $\dfrac 1x\cdot \dfrac{1}{(2x-1)^2}$ and then go from there, but I don't know what to do after…
Andrew
  • 133
1
vote
2 answers

Generating function for Minkowski Sum

Suppose you have a triangle with vertices $(1,0),(0,1), (0,0)$, and let $P$ be the number of all integer coordinates in the triangle. So $P=3$. Then the Minkowski sum $P+P$ is the set of points found by adding all possible pairs of integer…
Dani Hobbes
  • 2,725
1
vote
1 answer

Hyper Binary Representation and Generating function

Consider the recurrence relation: $f(0)=1$, for $n\geq1$, $f(2n+1) = f(n)$, $f(2n) = f(n) + f(n-1)$. This sequence is known to represent the number of different ways $n$ can be expressed as a sum of integer powers of $2$ using each power no more…
1-___-
  • 1,674
1
vote
1 answer

Couple questions on generating functions

Say I have a generating function $f(z) = \sum_{n=0}^\infty a_nz^n$. And I want a generating function for $g(z) = \sum_{n=0}^\infty n!a_nz^n$ for the same $a_n$. How do I modify $f(z)$? EDIT: In my case $f(z) = \frac{1}{(1-z)(2-e^z)}$. Are there…
user75619
  • 827
1
vote
0 answers

What is the broadest set of generating functions with guaranteed direct solutions for their coefficients?

Given a rational ordinary generating function we can directly compute the coefficients of that generating function. What is the broadest set of generating functions that allow for direct computation of their coefficients? I'm interested in both…
orlp
  • 10,508
1
vote
2 answers

Generating function formulation

The question I am given is (I am not asking for this whole question to be solved, just posting it here as reference): Let $S$ be the set of all non-empty subsets of $\{1,...,n\}$. Define the weight $w(B)$ of a set $B\in S$ to be the smallest element…
mhlzzz
  • 343
1
vote
3 answers

Determining the coefficient of a generating function

I've been doing some practice problems and I have encountered some questions. How would I determine the coefficient of $x^{25}$ in the generating function $F(x)$ with closed form expression? I can't factor the numerator which is why I did for the…
Andrew
  • 133
1
vote
3 answers

How to find generating function of a sequence

Need help to find generating function of the following series. $$\sum_{n=0}^{\infty} \frac{x^n}{n+1}$$ Thanks!
user442346