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

showing a genereral function from a generating function and recursive function

I have an assignment problem that i have been fighting with for a while now.. I have this recursive function: $$a_n=\begin{cases} 3,&\text{if }n=0\\ 5,&\text{if }n=1\\ 4a_{n-1}-4a_{n-2},&\text{if }n\ge 2\;. \end{cases}$$ We define the generating…
K24
  • 11
  • 1
1
vote
2 answers

a question in generating function

I can't understand why when we define $g(x)=f(x)-x^2$ which $f(x)={1\over1-x}$, why $g(x)$ can generate the $\{1,1,0,1,1,...\}$ ? thanks
Nima
  • 49
1
vote
1 answer

Generating functions for the non negative integer $k$-th powers

Prove that for all $k \in \mathbb{N}\cup \{0\}$, the generating function for the non negative integer $k$-th powers is a quotient of polynomials in $x$, that is for all $k \in \mathbb{N} \cup \{0\}$ there are polynomials $R_k(x)$ $S_k(x)$ such…
1
vote
1 answer

For each, give the generating function for the number of solutions

For each, give the generating function for the number of solutions to the equation with the constraints given. You do not need to find the number of solutions, just the generating function. a) $x_1 + x_2 + x_3 = n$ with $x_1$ odd and $x_2$ even…
KGT
  • 55
1
vote
1 answer

Find $G_a$ in the following case ${a_n}={1\over{(n-1)(n+1)}}$ for $n\ge 2$

We briefly covered generating functions in class and most of the situations we covered we were given a recurrence to find a generating function for. I haven't gotten very far but I do believe $$G_a(x) = \sum_{n=2}^\infty({x^n\over(n-1)(n+1)})$$ and…
1
vote
2 answers

Binomial sum - generating functions

Find a closed form for $a_n:=\sum_{k=0}^{n}\binom{n}{k}(n-k)^n(-1)^k$ using generating functions.
akotronis
  • 491
1
vote
1 answer

Is there any mathematic meaning of generating function at some value?

Out of curiosity I am trying to learn some material about generating functions. Now I understand that if I will expand Fibonacci generating function, $f(x) = \frac{1}{1-x-x^2}$ I will get a series where coefficients are Fibonacci numbers. What I…
1
vote
1 answer

Impossible counting problem with Generating function

How do I find the generating function where the coefficient $a_k$ represent the how many ways to distribute $k$ pieces of candy to n children where no children get more than m pieces? I cannot find any example of how to solve such problem. Thanks.
1
vote
1 answer

zeroing out lower-order terms in generating function

Given a generating function $F(x)=a+bx+cx^2+dx^3+\dotsb$, how do I truncate the $n$ lower order terms to get, for example if $n=2$: $cx^2+dx^3+\dotsb$? For example, if I wanted to find $0a+1b+2c+\dotsb$, I would…
Neil G
  • 2,479
1
vote
1 answer

Generating function of (-3)^n

Given the sequence $a_n$, where $n$-th element is $a_n = (-3)^n$ I have the generating function $$A(t) = \sum_{n=0}^{\infty} (-3)^nt^n $$ The problem now is to simplify the obtained expression. I did the following: Let $B(t) = -3t$ be the…
J.Exactor
  • 215
1
vote
2 answers

generating functions closed form

I am very new to using generating functions and am trying to apply one here. Is there a nice closed form for the expression $$\sum \frac{x^n}{1-x^n}$$ For example. $\sum x^n=\frac{1}{1-x}$
guest
  • 47
1
vote
1 answer

Explanation of Generating Functions Simplification

Given the problem: What is the coefficient of $x^{2005}$ in the generating function $G(x) = \frac{1}{(1-x)^2(1+x)^2}$? The solution posted starts with: Let $\frac{1}{(1-x)^2(1+x)^2} = \frac{A}{1-x} + \frac{B}{(1-x)^2} + \frac{C}{1+x} +…
Ran
  • 15
1
vote
2 answers

Sum with Generating Functions: $\sum_{n=2}^{\infty} \frac{\binom n2}{4^n} ~=~ \frac{\binom 22}{16}+\frac{\binom 32}{64}+\frac{\binom 42}{256}+\cdots$

Find the sum $$\sum_{n=2}^{\infty} \frac{\binom n2}{4^n} ~~=~~ \frac{\binom 22}{16}+\frac{\binom 32}{64}+\frac{\binom 42}{256}+\cdots$$ How can I use generating functions to solve this?
user228320
  • 629
  • 5
  • 13
1
vote
1 answer

Find the generating function

I'm trying to find the generating function for this sequence: $$0,0,3,0,9,17,33,65,129,257...$$ What I know so far: $$0\cdot x^0 + 0\cdot x^1 + 3\cdot x^2 + 0 \cdot x^3$$ and $$x^5(9+17x+33x^2+65x^3+129^4+257^5....$$ So what I have to do now Is…
1
vote
1 answer

Generating function for $l_{n+1} = 3l_n+1$.

I have the sequence $l_{n+1} = 3l_n+1$ for $l_0 = 0$ or $1$ (This just shifts the sequence one index back or forward.) The first terms are $(0),1,4,13,40,121,364,\ldots$ So I am looking for an expression for $S(x) = \sum\limits_{n=0}^\infty l_n x^n$…
flawr
  • 16,533
  • 5
  • 41
  • 66