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

Generating-function problem

$A(t),B(t) $ and $ C(t)$ are generating functions for sequences $a_0,a_1,a_2,...;b_0,b_1,b_2,...;c_0,c_1,c_2,\dots$ I do not know how to express C(t) through A(t) and B(t), if $c(n)=\sum_{k = 0}^{[n / 4]} a_k b_{n-4k}$
1
vote
1 answer

Generating functions, sequences with unlimited history of recursion

There is sequence $a_n = a_{n - 1} + 2 a_{n - 2} + \dots + n a_0$, and $a_0 = 1$. I found the generating function for this sequence: $(3t^2-3t+1)/(1-2t)^2$ but I do not know what to do next. How can I solve this? Should be reduced to a finite…
Lex
  • 369
1
vote
1 answer

Determine $x$ coefficient of $f(x)=( (x+1/x)^a+(x-1/x)^a)^b$

I'm trying to find the coefficients of $x$ from $f(x)=( (x+1/x)^a+(x-1/x)^a)^b$ where $a,b\in\mathbb{Z}^+$. I tried reading through some of Wilf's Generatingfunctionology, but I think I am still having…
DotCounter
  • 1,139
1
vote
2 answers

How to translate $\sum_n \frac{x^n}{a_n}$ into a generating function

Is there any way to translate $\sum_n \frac{x^n}{a_n}$ into a generating function of type $A(x)$ or into any combination involving $A(x)$? This question comes from a treatment I'm giving to equation…
Tavasanis
  • 328
1
vote
2 answers

Generating functions for sequences

I would like to know more about constructing generating functions for certain type of sequences defined differently over certain ranges of $n$, and would appreciate any references. For example, if there is a sequence: $a_{n+1} = 3a_n$, the standard…
1
vote
1 answer

Generating function for this series

The question is: find the generating function for $(f_0,f_1,f_2,...)$ where $f_{n} = f_{n-1}+ 2f_{n-3}$ and $f_0 =0$ and $f_1 = f_2 = 1 $ I have solved this and reached G(x) = $(x-2)\over(2{x^3} + x - 1)$ but I see in Wolfram Alpha that this is not…
ReZa
  • 189
1
vote
2 answers

Find Ordinary Generating Function for $k^3 (k \geq 2)$

Could we find the OGF for the sequence $k^3, k \geq 2$?
cinvro
  • 329
1
vote
1 answer

When does a closed form for the sequence enumerated by a generating function exist?

Are there any necessary and sufficient conditions on types of generating functions which guarantee the existence/nonexistence of a closed form for the sequence they enumerate? Generating functions based on linear recurrence relations clearly always…
silver
  • 103
1
vote
2 answers

Help me manipulating with exponential generating function (recurrence relation)

I have recurrence relation $f_0=0, f_1=1$ $$f_n = \frac{2n-1}{n}f_{n-1} - \frac{n-1}{n}f_{n-2} + 1$$ $$nf_n = nf_{n-1} + (n-1)f_{n-1} - (n-1)f_{n-2} + n$$ I tried to solve it using ordinary generating functions and it turned out to be close to…
1
vote
1 answer

Solving a combinations problem using generating function

How many ways are there to divide 100 balls into two cells, such that in the first cell there must be at least $2$ balls, while in the other cell there must be even number of balls. I want to solve it using generating functions. First, We'll…
AndrePoole
  • 3,271
1
vote
1 answer

Finding the coffecient for a generating function

Let $f(x) = {2 \over {1-2x}}$. How can you tell the expansion is: $\{2x + 2^2x^2 + 2^3x^3 + ...\}$ I am familiar with the geometric series and I guess there must be a connection between the two.
AnnieOK
  • 2,920
1
vote
2 answers

How to find Coefficient in product of binomials?

How can i find coefficient of $x^{51}$ in expansion of $$(x-1)(x^2-2)(x^3-3)\ldots (x^{10}-10)?$$ I tried all methods and formulae but couldn't find the right answer.
1
vote
1 answer

Finding Generating Series for Number of "words" in an Alphabet

Question: Find the generating series with the property that for each non-negative integer $n$, the coefficient of $x^n$ is the number of "words" of length $n$ coming from the alphabet $\{{a,b,c}\}$. Examples of words of length 3 are aaa, aab, baa,…
datascii
  • 145
1
vote
1 answer

Generating function of recurrence sequence

I have the following recurrence sequence $$ a_{1} = 0\,,\quad a_{2} = 1\,, \qquad\qquad a_{n} = {2 + 2\left(n - 2\right)\, a_{n - 2} + \left(n - 2\right)\left(n - 1\right)\, a_{n - 1} \over n\left(n - 1\right)} $$ It starts…
1
vote
4 answers

difficulty for deriving the series representation of $f(x)=\frac{1+x^3}{(1+x)^3}$

I was given the generating function $f(x)=\frac{1+x^3}{(1+x)^3}$ and I was asked to find $a_9$. I attempted to break it down into two parts: $$f(x)=\frac{1}{(1+x)^3}+\frac{x^3}{(1+x)^3}$$ For the first part, I utilized a known…
Ariana
  • 375