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
0
votes
0 answers

Finding coefficient of generating function 1

I was solving some problem related to generating functions ,and I have to find it's coefficient : So after some steps , I reached to this : $ ( 1 + x + x^2 + x^3 + x^4)(1 + x + x^2 + x^3 + x^4 + x^5) ( 1 + x + x^2) $ By Generating functions , $( (…
Johnathan
  • 323
0
votes
2 answers

Is this mathematically valid?

Suppose, I have a generating function: G(z) = Σ tnzn and an equation as: tn=tn-1+(n-1) I rewrite it in terms of G(z) as: Σ tnzn = Σ tn-1 zn + Σ n . zn - Σ zn Σ tnzn = z Σ tn zn + Σ n . zn - Σ zn G(z) = z G(z) + $\frac{n}{(1-z)}-…
0
votes
2 answers

Find seqeunce that is reated to genereating function

Is there any way to find a sequence from a generating function? As an example how can I find sequence that is treated to generating function of $g(x)= \frac{x+1}{(1-x)^3}?$
Nima
  • 49
0
votes
0 answers

Suppose that $a_n = a_0r^n$. This is a geometric sequence, since $a_{n+1}/a_n = r$ is independent of n.

Suppose that $a_n = a_0r^n$. This is a geometric sequence, since $a_{n+1}/a_n = r$ is independent of n. a) Give the generating function $A(X) = \sum_{n}a_nX^n$ b) Give the generating function $B(X) = \sum_{n}b_nX^n$ with $b_n = \sum_{k=0}^n a_k$ c)…
KGT
  • 55
0
votes
0 answers

Generating Function for the following sequences

Find the Generating Function for the following sequences $a)1,4,16,64,256$ $b)2,4,8,16,32\cdots $ My Attempt-: $a)G\left ( x \right )=\sum_{n=0}^{n=4}4^{k}x^{k}=\sum_{n=0}^{n=4}\left ( 4x \right )^{k}=\frac{\left ( 4x \right…
0
votes
1 answer

How do I find the EGF of the sequence $a_n = s(s − 1)(s − 2). ... .(s − n + 1)$

This is an exercise given in class, but I don't even know how to start. Can you give me some hints?
ddz
  • 165
0
votes
0 answers

Help on expressing generating functions in closed form...

I came across some applications of generating functions, and I'm struggling to "formally justify" why the generating function $G(x)=1+x+x^2+x^3+...$ can be expressed as $\frac{1}{1-x}$. The way you arrive to that point is this: $x \cdot…
user368484
0
votes
1 answer

What is the ordinary generating function of this series?

I need this as part of a bigger proof. Does \begin{align} G_1 &\longleftrightarrow \Big\{\binom{n}{k}\Big\}_{2k=0}^r \notag \\ \implies G_1(z) &= (1 + z^2)^r \end{align} Help me prove this as it would help me with the bigger problem I'm doing. I…
Saikat
  • 2,461
0
votes
1 answer

Can I express $\sum_{k,r} rV_rV_{k-1}x^k$ in terms of $u(x)\equiv \sum_kV_k x^k$?

I'm trying to solve a tough balls-in-bins problem by working with generating functions for the distributions of balls in bins at different times. So I have the probability that $k$ bins have some property as $V_k$ and I am working with the…
Mark Fischler
  • 41,743
0
votes
0 answers

Coefficient of generating function in two variables

I have a generating function $$\sum_{m,n} P(m,n)y^{m}x^{n} = \prod(1-yx^t)^{-1}$$ where $t \in \{1,2,3,5,8,...\}$ i.e. Fibonacci set with single 1. For now, I have a naive script to calculate coefficient of $y^{m}x^{n}$ which works by expanding and…
chiragjn
  • 103
0
votes
2 answers

Understanding the equality $x^k(1-x)^{-k} = \sum_{n = k}^{\infty}{{n-1}\choose{k-1}}x^n$

Can anyone explain me why this equality is true? $x^k(1-x)^{-k} = \sum_{n = k}^{\infty}{{n-1}\choose{k-1}}x^n$ I really don't see how any manipulation could give me this result. Thanks!
0
votes
0 answers

prove the equation by generating functions

Im studying a book about stochastic processes and it is mentioned in the book that the equation below is true and we can obtain it by generating functions can anyone prove it. Thanks a lot. $$\sum_{m=0}^{\infty}\binom{2m}{m}p^m = (1 - 4p)^{-1/2}$$
mahrap
  • 324
0
votes
1 answer

Generating function question with an inequality and finding the closed form.

Consider the inequality $x1+x2+x3+x4 ≤n$ where $x1, x2, x3, x4, n ≥ 0$ are all integers. Suppose also that $x2 ≥ 2$, $x3$ is a multiple of 4, and $1 ≤ x4 ≤ 3$. Let cn be the number of solutions of the inequality subject to these restrictions. Find…
user88528
0
votes
1 answer

A volunteer coordinator has 30 identical chocolate chip cookies to distribute to six volunteers.

Use a generating function (and computer algebra system) to determine the number of ways she can distribute the cookies so that each volunteer receives at least two cookies and no more than seven cookies. I don't know how to do generating functions.…
user88528
0
votes
4 answers

How does $\frac4{1-x^3}=\sum_{n\ge 0}4x^{3n}$ equal $4x^0+0x^1+0x^2+4x^3+0x^4+0x^5+4x^6+0x^7+0x^8+\ldots$?

I've been searching through the internet and through SE to find something to help me understand generating functions, but I haven't found anything that would solve my problem with them. I understand that $$\frac1{1-x}=\sum_{n\ge…
user265554
  • 2,853