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
21
votes
2 answers

Does there exist a function that generates itself?

I'm wondering if there is a function that is its own generating function. That is, is there an entire function $f$ such that $$ f(z) = f(0) + f(1)z + f(2)z^2 + f(3)z^3 + \cdots? $$ I have found that if I fix $p(0)$ and $p(1)$, I can construct a…
Polygon
  • 1,854
12
votes
1 answer

Composition of Formal Power Series is associative

How do I go about proving that the composition of formal power series is associative? I've tried proving the result directly, but the resulting expressions are quite unwieldy. Currently, I'm trying to make use of the topology on $\mathbb{C}[[x]]$,…
Victor
  • 123
11
votes
3 answers

Given an exponential generating function, is it possible to isolate only the even terms?

Suppose you have an exponential generating function $$ F(x)=F_0+F_1x+F_2\frac{x^2}{2!}+\cdots+F_n\frac{x^n}{n!}+\cdots $$ and you want to get only the even terms $$ F_e(x)=F_0+F_2\frac{x^2}{2!}+F_4\frac{x^4}{4!}+\cdots $$ Is it possible to write…
user7938
9
votes
1 answer

How to Multiply Two Infinite Series Correctly?

From my readings on the wikipedia, I was able to gather that the product of two infinite series $\sum_{i=0}^{\infty} a_{i}$ and $\sum_{j=0}^{\infty} b_{j} $ is outlined by the Cauchy Product. The cauchy product formula is explicitly shown below, $$…
7
votes
1 answer

Convert an OGF to an EGF

If I have an ordinary generating function (OGF) as a rational polynomial: $$ Q(y) = \frac{f_1(y)}{g_1(y)} $$ Which has a power series representation $$ Q(y) = \sum_{n \geq 0} a_n y^n $$ How can I compute the exponential generating function…
Hooked
  • 6,637
7
votes
2 answers

harmonic series - generating function

I am currently learning about generating functions and I found an interesting one for harmonic series, $\dfrac{\log(1-x)}{x-1}$. Is there any hope I could get a formula for $n$th coefficient out of this? The $n$th derivative looks messy... In…
Adam
  • 3,422
  • 1
  • 33
  • 50
7
votes
1 answer

Generating function for the number of ways of writing an integer as a sum of distinct integers from a finite set

Let $A$ be a finite set of integers. The generating function for the number of ways of writing a given integer $n$ as the sum of $k$ elements from $A$ not necessarily distinct is given by: $$\left(\sum_{a \in A}{x^a}\right)^k=\sum_n{r(n,k)x^n}$$ Is…
Matt Calhoun
  • 4,404
6
votes
1 answer

Generating functions and closed form solution for fibonacci sequence

Doing some extra practice problems and am having a hard time with this concept. Thanks!
Mandy
  • 83
6
votes
2 answers

Simplify $\frac{1}{1 + \sqrt{2}} + \frac{1}{\sqrt{2} + \sqrt{3}} + \frac{1}{\sqrt{3} + \sqrt{4}} + \cdots+ \frac{1}{\sqrt{24} + \sqrt{25}}$

Simplify$$\frac{1}{1 + \sqrt{2}} + \frac{1}{\sqrt{2} + \sqrt{3}} + \frac{1}{\sqrt{3} + \sqrt{4}} + \cdots + \frac{1}{\sqrt{24} + \sqrt{25}}.$$ I know you can solve this using generating functions but I'm not totally sure.
user68472
  • 141
5
votes
0 answers

Interpreting combinatorics in the language of generating functions

Recently I've been trying to make sense of generating functions by trying to create an interpretation for it, so far I've made interpretation of addition, multiplication, division and derivative and integrals. However, there are some parts which I…
5
votes
2 answers

Finding combination using generating function

Q. Find the no of ways of inserting r dolllars using 1 dollar, 2 dollar and 5 dollar tokens,when order doesn't matter and when order doesn't matter. Ans. When order doesn't matter.. $(1+x+x^2+x^3+..)(1+x^2+x^4+..)(1+x^5+x^{10}+..)$ Coefficient of…
Vibhav
  • 115
4
votes
2 answers

Extending generating function into series.

There is a reccurent equation: $a_{n+2}-2\cos(\phi)a_{n+1}+a_n=0$ and I must to solve it. I found generating function: $$A(t) = \dfrac{1 - t\cos(\phi)}{1 - 2t\cos(\phi) + t^2},$$ but I can not extend it into series to solve this equation. Please…
Lex
  • 369
4
votes
1 answer

Generalization of Fibonacci using Generating Functions

I have been trying to work through the beginning of Generating Functionology. In the first chapter, the author mentions that it is possible to using generating functions to solve for a Fibonacci-like sequence ($a_{n+1}=a_n+a_{n-1}$) where we have…
Thoth19
  • 829
4
votes
1 answer

Generating function of $a_{n}^2$ in terms of GF of $a_{n}$?

If we consider $A(x)$ as a generating function of a sequences $a_{n}$, is there any way to find the generating function of, say for example, the sequences : $v_{n}=a_{n}.a_{n+1}$ and $u_{n} = a_{n}^2$ in terms of $A(x)$?
4
votes
4 answers

Understanding the functionness of a generating function

A function, at its bare bones, takes an input and produces an output. For example, $f(x) = x^2$ can take a value $x = 4$ and produce an output of $16$. Contrarily, the $x$ in a generating function such as $1 + x + x^2 \; + \; ...$ generally serves…
user1082389
1
2 3
21 22