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
2 answers

Generating function coefficient

I have a generating function $\frac{1}{(1-x-x^{3}+x^{4})^{2}}$. I have to find the $x^{n}$ coefficient. So far it seems that the next step is to convert this function back to the sequence, but I am not sure how to proceed.
user826476
  • 11
  • 2
1
vote
1 answer

Discrete Mathematics - Generating Function

Adanna grows apples, oranges, avocados, persimmons, and cherymoia in her back yard. She only harvests 10 persimmons and 1 cherymoia, but she grows an almost limitless supply of apples, oranges, and avocados. Adanna wants to give fruit to her…
1
vote
0 answers

generating function of Fibonacci sequence: a wrong answer

I have an exercise which finds a formula for Fibonacci sequence from a recurrence relation $$\begin{matrix}u_1=u_2=1\\u_{n+2}=u_{n+1}+u_n \end{matrix}$$ I know there are numerous results on the Internet but mine has a little difference which leads…
Becker
  • 123
1
vote
3 answers

Proof Vandermonde's identity using generating function

Proof Vandermonde's identity using generating function $$\binom{m+n}{r}=\sum_{k=0}^r\binom{m}{r-k}\binom{n}{k}$$ $\binom{m+n}{r}$ is the coefficient of $x^r$ in $(1+x)^{m+n}$. Then I…
falamiw
  • 862
1
vote
2 answers

How many integer solutions there are for this equation $\sum_{k=1}^r |x_k| =n$?

Using a proper generating function I need to evaluate the number of integer solutions to this equation : $\sum_{k=1}^r |x_k| =n$ Can I assume that $\sum_{k=1}^r x_k =n$ and $\sum_{k=1}^r -x_k =n$ has the same amount of integer solutions and that…
1
vote
2 answers

The sum $\sum^{n}_{k=0} \frac{\binom{n}{k}}{\binom {2n-1}{k}}x^k$

I was trying to evaluate: $$\sum_{k=0}^{n} \frac{\binom{n}{k}}{\binom {2n-1}{k}}x^k$$ And in particular, when $x=1$. I already have $2$ proofs for the $x=1$ case, (it is $2$) by counting subsets of a $2n-1$ size set and by splitting the term into a…
mtheorylord
  • 4,274
1
vote
0 answers

Extracting restricted sums of the coefficients of generating polynomials

Let's say we have a multivariate polynomial generating function $$f(x_1,...,x_m) = \sum_{0\le n_1,...,n_m\le k}a_{n_1,..,n_m} x_1^{n_1}\cdot ...\cdot x_m^{n_m}$$ I now want to extract a partial sum of its coefficients, namely $$ \sum_{c_1\,\le…
Sudix
  • 3,630
1
vote
1 answer

What series does the function $\frac{1}{(1-ax)^r}$ generate?

I want to know what series the function $$1/(1-ax)^r, \quad a,r\in \mathbb{N}, $$ generates. I thought about doing this: Let's name $y=ax$. Now we have $$\frac{1}{(1-y)^r}, \quad r\in \mathbb{N},$$ and we know that $$\frac{1}{(1-y)^r}=…
KIMKES1232
  • 425
  • 3
  • 9
1
vote
0 answers

Prove $\sum_{k=0}^n \binom{2k}{k}\binom{2(n-k)}{n-k}=4^n$

My approach: change $4^n$ to $2^{2n}$, then we're trying to show $\sum_{k=0}^n \binom{2k}{k}\binom{2(n-k)}{n-k}=\sum_{k=0}^{2n} \binom{2n}{k}$, but then I got stuck. Any help would be appreciated.
Kai
  • 874
  • 4
  • 14
1
vote
2 answers

Find generating function for $\sum_{n\ge 0} \binom{m+n}{n}x^n$, $m \in\mathbb{Z}$

I’ve tried applying Vandermonde’s identity, but got stuck. Any help would be appreciated!
Kai
  • 874
  • 4
  • 14
1
vote
1 answer

Is it possible to "invert" an exponential generating function?

Consider the exponential generating function for a sequence $\mathbf{a}$, given by: $$\text{EG}_\mathbf{a}(x) = \sum_{n=0}^\infty a_n \frac{x^n}{n!}.$$ In order to find the sequence $\mathbf{a}$ that corresponds with certain specified forms for the…
Ben
  • 4,079
1
vote
1 answer

Finding the explicit formula for the recursion $a_n = 2a_{n-1} + a_{n-2}$ with $a_0 = 1$ and $a_1 = 3$?

I'm trying to find the explicit formula for the recursion $a_n = 2a_{n-1} + a_{n-2}$ with $a_0 = 1$ and $a_1 = 3$. I already found the generating function: $f(x) = \frac{1+x}{1-2x-x^2}$, and the characteristic polynomial: $x^2 - 2x + 1 = 0$, which…
1
vote
2 answers

Calculating and proving the generating function for the recursion $a_n = 2a_{n-1} + a_{n-2}$ with $a_0 = 1$ and $a_1 = 3$?

I'm trying to calculate the generating function for the recursion $a_n = 2a_{n-1} + a_{n-2}$ with $a_0 = 1$ and $a_1 = 3$. I've found all sorts of related facts, like the OEIS series of the coefficients (A001333), or the actual equation $a_n =…
1
vote
3 answers

Generating functions (index shifting)

I am going through old exam questions for my upcoming exam, but got stuck on a question since I don't really understand the solution. The question I have a problem with (in boldface): (b) Let the sequence $a_n$ be given by the recurrence…
coder
  • 147
  • 3
1
vote
1 answer

Can someone simplify this expression into Sterling numbers of the second kind

There was a question that was asked as below. How many different ways can you distribute m distinct objects into n distinct bins such that there are no bins with exactly one object. To solve this I made an attempt but do not know how to finish it…