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

How to Solve box balls with Generating Functions

I have a question that I thought of. There are two boxes. One box has an infinite number of balls, distributed so that there is $1$ ball labeled $1,$ $2$ balls labeled $2,$ and for any positive integer $n,$ $n$ balls labeled $n.$ Another box has…
Jason Kim
  • 902
0
votes
1 answer

Using Generating Functions to Distribute Candies

Determine how many ways I can distribute $80$ candies to $3$ kids, such that: $\bullet$ The first kid receives an arbitrary number of candies (possibly $0$). $\bullet$ The second kid receives an even positive number of candies. $\bullet$ The third…
0
votes
0 answers

Need help finding a generating function

I need to find the generating function for $a_n$ where: $$a_{2k}=\dfrac{(-1)^k}{(2k)!}$$ $$a_{2k+1}=\dfrac{1}{(2k+1)}$$ $$k \geq 0$$ The solution is: $$f(x)=\cos(x)+\operatorname{atanh}(x)$$ So far I've solved problems where everything began with a…
frostpad
  • 235
0
votes
2 answers

Solving: $f(n)-5f(n-1)-6f(n-2)=2^n+n$

I've been trying to solve this generating function: $f(n)-5f(n-1)-6f(n-2)=2^n+n$ This is how I approached it. I divided it into: $f(n)-5f(n-1)-6f(n-2)=2^{n+1}$ and $f(n)-5f(n-1)-6f(n-2)=2n$ I then calculated the homogeneous and particular solution…
3.14159
  • 183
0
votes
2 answers

How to find a generating function in simple, closed form

I’m stuck on something in generating functionology. The first problem asks: Find the ordinary power series generating functions of the sequence in simple closed form for the sequence $a_n = n$. The sequence is defined as $n ≥ 0$. I figured out how…
0
votes
0 answers

Use generating functions to find the number of ways to select 10 balls

Use generating functions to find the number of ways to select 10 balls from a large pile of red, white and blue balls if: a) the selection has at least 2 balls of each color, b) the selection has at least 2 red balls. I can say that I understand…
0
votes
1 answer

How to intuitively see that Generating function for not more than $k$ objects given by : $\frac{1-x^{k+1}}{1-x}$

If take a value for $k$, say not more than $k=4$; then the generating function (G.F.) needed is : $\frac{1-x^5}{1-x}$. This confuses me as the G.F. given are : $A(x) = 1+x+x^2+x^3+x^4+\cdots = \frac{1}{1-x}$ $B(x) =…
jiten
  • 4,524
0
votes
1 answer

Generating function of $(2n+1)2^{n-2}$, $n\leq2$?

It says in the solution that the generating function is: $j=n-2$ $$x^2 \sum_{j=0}^\infty(2j+5)2^jx^j=2x^2\sum_{j=0}^\infty(j+1)(2x)^j+3x^2\sum_{j=0}^\infty(2x)^j=\frac{2x^2}{(1-2x)^2}+\frac{3x^2}{1-2x}$$ I don't understand the these steps. Is there…
0
votes
1 answer

find closed form for recurrence relation using generating function

I have this recurrence relation: $$\begin{equation} \begin{cases} a_n = 2a_{n-1} + n & (n\geq1)\\ a_0 = 1 \end{cases} \end{equation}$$ Set: $$f(x) = \sum_{n=0}^\infty a_nx^n$$ I solved in this way: $$\sum_{n=1}^\infty a_nx^n =…
0
votes
0 answers

Recurrence formula in generating functions

I wanted to know that is there a way to find generating function for a sequence without finding a recurrence formula for it ? If there isn't; Is there a formula for finding recurrence formula it-self?
Abbas
  • 323
0
votes
1 answer

Moment generating Function Problem

My task is to find a fitting probability distribution function. For $X$, the moment generating function is given as $$mx(s) = \left(\frac{1-p}{1-pe^s}\right)^2$$ $p\in(0,1)$ is a parameter. I don't know where to start.
0
votes
4 answers

Partial fraction of $A(x)=\frac{x^2+x+1}{(1-x)^3}$

I was trying to get a formula for some sequence but I'm stuck at last part and I really want to know if there's a general way of solving it: What is the numerator of partial fractions of …> $$A(x)=\frac{x^2+x+1}{(1-x)^3}$$ Appreciate any help!
Abbas
  • 323
0
votes
0 answers

Expansion of fibonacci generating function

First: I will be appreciated if you do the the expansion of $$ \frac{x}{1-x-x^2}$$ Second: I've seen in some textbook(generatingfunctionology) in a phase of exapnsion it told: $$\frac{1}{1-xr_+}=\sum_{j=0}^\infty x^j+r^j$$ I was confused when I saw…
Abbas
  • 323
0
votes
0 answers

Find the sequence with f(x)=$3x^{2x}$ as the exponential generating function.

I have to find the sequence generated when I use this function as exponential generating function: f(x)=$3x^{2x}$ I don't know how to expand this function into a series.
0
votes
1 answer

Simple Cases of hadamard product

I have a simple recursive formula $a_{n+1} = (1+ 1/n) a_n +1$ and try to find the generating function of ${a^2_n}$. A classic approach is using Hadamard product of the generating function of A(x) with itself. However it leads to complex integrals.…
Rasoul
  • 17