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

Nonnegative Integer Solutions using Generating Functions

Find the number of nonnegative integer solutions for the equation using generating functions $$y_{1}+2y_{2}+2y_{3}=n$$ I'm going to let $$y_{1}=e_{1}$$ $$2y_{2}=e_{2}$$ $$2y_{3}=e_{3}$$ so it becomes $$e_{1}+e_{2}+e_{3}=n$$ I can represent it as…
user2553807
  • 1,245
  • 25
  • 46
2
votes
1 answer

Sequence to Generating Function

I was given a sequence (0, 0, 1, 2, 4, 8, 16). I am tasked with finding the generating function. So far I have reached this point: A(x) = x^2 + 2x^3 + 4x^4 + 8x^5 + 16x^6 + ... -xA(x) = x^2 + x^3 + x^4 + x^5 + x^6 + ... A(x) - xA(x) = x^3 +…
StarCute
  • 165
2
votes
1 answer

Ordinary generating function and 1/(1 - x)

I do believe it's dummy question, but I would be grateful if one explains me why following generating function is valid. I'm novice in the topic and intuitively I can't understand why it's true. It's well known OGF with 1, 1, 1, .... is generating…
Oleg
  • 123
2
votes
1 answer

Generating Functions for $a_n:n=i_1+i_2+i_3+i_4$

I'm having an intro combinatorics class and I do understand the theorems but I don't really know how to apply them. It's pretty easy to solve straight forward questions, but I just don't understand how to solve harder questions, can someone explain…
2
votes
2 answers

Finding sequence that's defined by a recurrence relation

This is the problem that I ran into when doing practice in my textbook. How do I find the sequence (call it $a_n$) that's defined by recurrence relation whose generating function is $\frac 4 {-x^2-2x+3}$? Help appreciated!
2
votes
2 answers

Solving recurrence equation using generating function method

I've been trying to solve the following equation intuitively (I only know the method if there are minuses in the equation - $a_{n-1},…
khernik
  • 1,369
2
votes
2 answers

Solving recurrence equation with generating functions

$$a_{0}=0$$ $$a_{1}=0$$ $$a_{2}=-1$$ $$a_{n+3}-6a_{n+2}+12a_{n+1}-8a_{n}=n$$ It's just that...I don't know what to do if there are $a_{n+1}$ instead of $a_{n-1}$, I don't know what to do with that $n$...How can I solve this?
khernik
  • 1,369
2
votes
1 answer

Generatingfunctionology Chapter 1 Exercise 9

Regarding the exercises of the Generatingfunctionology book available at (https://www2.math.upenn.edu/~wilf/DownldGF.html). In particular Chapter 1, Exercise 9 (page 25). First part: Here a function $f$ is defined for $n\geq 1$ as (a) $f(1)=1$, (b)…
Cant
  • 107
2
votes
1 answer

Generatingfunctionology Chapter 1 Exercise 1.c

Regarding the exercises of the Generatingfunctionology book available at (https://www2.math.upenn.edu/~wilf/DownldGF.html). In particular Chapter 1, Exercise 1.(c), which asks to find the ordinary power series generating function of $$a_n =…
Cant
  • 107
2
votes
3 answers

Find the generating function of the sequence

I need to find generating function of sequence : $$\left\{0, 1, \frac12, \frac23, \frac24, \frac45, \frac46, \frac87, 1, \frac{16}9, \frac{16}{10}, \ldots\right\}$$ I saw that odd positions are $\frac{2^n}{2n+1}$ where $n$ goes from $0$ to $\infty$,…
zion
  • 165
2
votes
0 answers

How many hands can we make from a deck? (pg-75, generating functionology)

Given an exponential family $\mathbb{F}$. For each $n \geq 0 $, and $ k \geq 1$, let $h(n,k)$ denote the numebr of hands $H$ of weight $n$ that consist of $k$ cards, and are such that each card in the hand is a relabeling of some card in some deck…
2
votes
3 answers

Number of compositions of n

Prove that for $n\ge2$, the number of compositions of $n$ where the first part is 1 is equal to the number of compositions of $n$ where the first part is greater than 1. This is what I am stuck on. I got that the number of compositions of $n$ where…
2
votes
1 answer

Generating function on Lehman's Mathematics for Computer Science

I am reading Lehman's Mathematics for Computer Science. In chapter 16 Generating Functions.enter image description here I couldn't see how $1-x-x^2 = (x-r_1)(x-r_2)$. Shouldn't it be $1-x-x^2 = -1(x-r_1)(x-r_2)$? Since $r_1 r_2 = r_1+r_2 = -1$,…
Sean
  • 121
2
votes
0 answers

How do i interpret a generating function with an exponential transformation?

During my work i've encountered generating functions in the form $$U(z) = \sum a_ne^{-nz} \quad.$$ Now, i've just begun to study generating functions a little bit more in depth but up until now i've only encountered ordinary generating functions and…
2
votes
1 answer

Understanding the fundamental lemma of labelled counting

From page-79 of generating functionology, And the following proof, The first paragraph is understandable for me, but I don't get how from it he concluded that summation. Here are the parts I understand: The weight of hands in $h$ and the number…