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

Generating Function Question - Infinite Series - Simple Question

$$ \sum_0^\infty u^{2n+1} = \frac{u}{1-u^2} $$ $$ \Rightarrow \sum_0^\infty (2n+1)u^{2n} = \frac{d}{du}\left(\frac{u}{1-u^2}\right)= \frac{u^2+1}{(1-u^2)^2} $$ In our problem, we have $u= t^n(1-t^n)x^n$. But my professor has it written down that: $$…
H5159
  • 969
0
votes
1 answer

Generating Function - Understanding an expression.

Consider: $${1 \over 2}\left[ {{e^{3x}} - {e^{2x}} + {e^x} - 1} \right] = \left( {\sum\limits_{k \ge 0} {{{{3^k} - {2^k} + 1} \over {2 \cdot k!}}{x^k}} } \right) - {1 \over 2}$$ I understood that because of the expression $1\over 2$, One should…
AnnieOK
  • 2,920
0
votes
1 answer

Evaluating a generating function

$$\frac{x}{{{{(1 - x)}^6}}} = x\sum\limits_n^\infty {\left( {\begin{array}{*{20}{c}} {n + 5} \\ 5 \\ \end{array}} \right)} {x^n} = \sum\limits_n^\infty {\left( {\begin{array}{*{20}{c}} {n + 5} \\ 5 \\ \end{array}} \right)} {x^{n +…
AndrePoole
  • 3,271
0
votes
1 answer

given OGF of some sequence, provide a closed form expression for the sequence.

If we have OGF(Ordinary Generating Function) of $d_{n}$: $d(x)=\frac{1}{4-2x+x^2}$ How to get a closed form expression for $d_{n}$?
cinvro
  • 329
0
votes
2 answers

Find the coefficient of x^12 in (1-x^6)^4 * (1-x)^-4

How do you find the coefficient of $$x^{12}$$ in $$(1-x^6)^4*(1-x)^{-4}$$ I mean this is just $$[1-{4\choose 1}x^6+{4\choose2}x^{12}-{4\choose3}x^{18}+{4\choose4}x^{24}]*[{-4\choose0} + {-4\choose1}(-x) + ... +{-4\choose12}(-x)^{12}]$$ How do I…
0
votes
0 answers

compositions of $n$ each part at least $c$

How many composition of $n$ are there in which each part is at least $c$ ? I don't think my way of doing it is completely correct. Let $S=\bigcup_{k \geq 0} N_{\geq c}^k$ where $k=0$ is the empty composition of 0 . The generating function for a…
Allison
  • 113
0
votes
0 answers

Justification for the generating function equality in the derivation of the Bernoulli-Seki formula

In the derivation of the Bernoulli-Seki formula the first step is unfolding the exponential generating function of $S_n(k)=\sum_{a=1}^k a^n$ as $$ \sum_{n \geq 0} S_n(k) \frac{T^n}{n !}=\sum_{a=1}^k \sum_{n \geq 0} \frac{(a T)^n}{n !}=\sum_{a=1}^k…
JAP
  • 553
0
votes
1 answer

What does it mean to expand a generating function?

I'm reading generatingfunctionology, and the author came up with this generating function: $$ A(x) = \frac{x}{(1-x)(1-2x)} = x\{\frac{2}{1-2x} - \frac{1}{1-x}\} $$ Then he expands it. Which I thought was supposed to be: $$ \sum_{n \ge 0}…
0
votes
1 answer

compositions into odd number of parts, each part being even

The generating function for compositions of $n$ with $k$ parts so that each part is even is $(t^2/(1-t^2))^k$. Is the generating function for the compositions with an odd number of parts each of which is even just $(t^2+t^4+t^6+\dots)^{2k+1}$?
user1036484
0
votes
1 answer

Convert a closed-form generating function to a sequence

I need some help with an assignment question: I must determine the sequence generated by the following generating function: $2x^3 \over 1 - 5x ^ 2 $ In class we have only gone from the sequence to the closed form so, I am not really sure how to…
Evan
  • 375
0
votes
1 answer

Gererating Functions, Use generating functions to determine the number of 10-digit ternary sequence with constraints

I have been given the following problem: Use generating functions to determine the number of 10-digit ternary $(0,1,2)$ sequences in which the digit $2$ occurs at least once, and the digit $0$ occurs an even number of times. My work thus far: I know…
0
votes
0 answers

Help for rating system calculation formula

I am trying to solve a "Trickle down" Rating Formula. The interaction is between a Seller, a Service, Participants in the Service and several Buyers of the Service. The rating is from 1 to 5 where 5 is the top rating. The Seller and Participants Can…
0
votes
1 answer

How many ways to eat 10 donuts with 5 different flavors?

How many ways are there to select 10 donuts with 5 different flavors? Note that it is not necessary to include all 5 flavors in 1 selection. Write your answer as the coefficient of $x^n$ (for some $n$) of a power series in rational form. Each…
0
votes
0 answers

Where should $n$ in generating function start?

For a sequence of numbers, the generating function has the form $$ g(x)=\sum_{n\space\geq\space0}a_nx^n $$ If $n$ starts from $2$ instead, should $\displaystyle g(x)=\sum_{n\space\geq\space2}a_{n+2}x^{n+2} $, (or $\displaystyle…
IGY
  • 919
0
votes
0 answers

Generating function to change a dollar.

Find the generating function G(x) enumerates the number of options to change a dollar using an odd number of nickels, a prime number (0 and 1 excluded) of dimes, and any number of quarters. Here's the generating function I found: $$G(x) =…
IGY
  • 919