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
3
votes
1 answer

Question from Wilf's generatingfunctionology on ordered representations of $n$ as a sum of $k$ distinct integers.

This is a question from Wilf's generatingfunctionology, Chapter 2, Exercise 21(a) and (b) (p. 71 in the 3rd edition). (a) Let $T$ be a fixed set of nonnegative integers. Let $f(n,k,T)$ be the number of ordered representations of $n$ as a sum of…
Bamboo
  • 2,285
3
votes
1 answer

Generating Functions Dice

In how many ways can we roll a red die, a yellow die, and a black die, and get a sum of $9$? (The dice are colored so that a red $2$, a yellow $3$, and a black $4$ is distinguished from a red $3$, a yellow $4$, and a black $2$, for example.) Should…
3
votes
2 answers

What sequence does $\frac{1}{1-s-s^4}$ generate?

When attempting to find an easy answer to this question What is the coefficient of $x^{11}$ in the power series expansion of $\dfrac 1{1-x-x^4}$? I'd think of $\frac{1}{1-x-x^4}$ as of a generating function. I did some series expansion on WA and…
3
votes
1 answer

Convolution of Generating Functions

If I have given the following generating function $$B = \sum_{n > 0} x^n \sum_{k_1 + \cdots + k_c = n} a(k_1) \cdots a(k_c)$$ is it possible to obtain a nice convolution expression for $a(k_1) \cdots a(k_c)$ in terms of some generating…
steven
  • 33
3
votes
2 answers

Give a Sequence, Find Its Generating Function: $\binom{8}{1},2\binom{8}{2},3\binom{8}{3},\dots , 8\binom{8}{8}$

The Full Question Find the generating function(closed form) of the following sequence: $\binom{8}{1},2\binom{8}{2},3\binom{8}{3},\dots , 8\binom{8}{8}$ My Work The open form of this generating function is: $1\binom{8}{1}x^0+2\binom{8}{2}x^2…
Dunka
  • 2,787
  • 12
  • 41
  • 69
3
votes
1 answer

Using generating function determine $u_n$

Using generating function determine $u_n$ $$u_{n+2}+8u_{n+1}-9u_n=8 \cdot 3 \cdot 3^n$$ $$u_0 =2 $$ $$u_1 = -6$$ And my attempt: $$u(x) = \sum^\infty_{n=0} u_nx^n$$ $$u_{n+2}+8u_{n+1}-9u_n=8 \cdot 3 \cdot 3^n$$ $$\sum^\infty_{n=0} u_{n+2}x^{n} + 8…
user180834
  • 1,453
2
votes
1 answer

Learning about generating functions and sequences.

I've been reading through other questions on this site and external resources for a few hours now but seem to be having a mental block, probably through some elementary misunderstanding of my course notes or most likely because my mathematical…
Old mate
  • 694
2
votes
1 answer

Generating function - zeros when $n\in \mathbb{N}_{odd}$

It is given that $a_n$ is generated by the following function: $${1+6x} \over {(1+5x)(1-x)}$$ What is the generating function of: $$\left\{ {\matrix{ {{a_n},\mathbb{N}_{even}} \cr {0,\mathbb{N}_{odd}} \cr } } \right.$$ I'm guessing it's a…
AnnieOK
  • 2,920
2
votes
3 answers

Find sequence function and general rule

the function $$a_{n+2}=3a_{n+1}-2a_n+2$$ is given, and $$a_0=a_1=1, (a_n)_{n\ge0}$$ multiplying everything by $$/\sum_{n=0}^\infty x^{n+2}$$ also adding $$\sum_{n=0}^\infty (a_{n+2}x^{n+2}+a_1x+a_0)-a_1x-a_0=\sum_{n=0}^\infty…
2
votes
1 answer

Taking the derivative of a generating function and trying to find the $n^{th}$ derivative

When we are working with a generating function of a given sequence, when we take the derivative, we normally multiply by $x$ to shift the series back due to the derivative causing a shift in the opposite direction. Now, say we are trying to find the…
H5159
  • 969
2
votes
3 answers

How would one go by manipulating known generating functions to get the following:

$$\sum_0^\infty(n+1)(2n+1)x^n$$ I know the following, which is what I am assuming I must manipulate. I have the answer to the closed form, but I do not understand how to get there. Please, no answers as of yet, just hints/tips. $$…
H5159
  • 969
2
votes
2 answers

Generating function - technical issue.

Which sequence is generated by $\frac{{5x - 3{x^2}}}{{{{(1 - x)}^3}}}$? We know that: $$\frac{1}{{{{(1 - x)}^3}}} = \sum\limits_{j = 0}^\infty {\left( {\begin{array}{*{20}{c}} {j + 2} \\ 2 \\ \end{array}} \right){x^j}} $$ So we have: …
AnnieOK
  • 2,920
2
votes
0 answers

Question about generating functions with trig

Consider there recurrence relation $$a_n=\frac{5}{4} a_{n-1} \cos{(\pi\cdot a_{n-1})}.$$ I am trying to find the generating function $A(x)=\sum_{n=1}^\infty a_nx^n.$ I've tried the following: $$a_n=\frac{5}{4} a_{n-1} \cos{(\pi\cdot a_{n-1})}\\…
Bonnaduck
  • 4,058
2
votes
4 answers

How to use the generating function $F(x) =x/(1-x-x^2).$

The generating function for the Fibonacci sequence is $$F(x) =x/(1-x-x^2).$$ To work out the 20th value of the sequence I understand you somehow expand this and look at the coefficient of $x^{20}$. How exactly do you do this?
marshall
  • 729
  • 7
  • 22
2
votes
4 answers

How to put lions into n cages

In how many ways can you put lions into n cages so that in each cage there's no more than 1 lion and every two adjacent cages are not occupied (lions cant be located next to each other). We have an unlimited number of lions and there's at least one…
Max
  • 923
  • 1
  • 8
  • 18