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

Write the generating function of a sequence as the quotient of two polynomials

I want to write the generating function of the sequence $$a_0=2, \;a_1=3, \; a_{n}=2a_{n-1}-2a_{n-2} \; \text{for }n\geq 2$$ as the quotient of two polynomials. But how can I do that? What is the best way?
0
votes
1 answer

Generating functions to find a coefficient

Use generating functions to find the coefficient of $x^{15}$ in $\frac{x^3-5x }{(1-x)^3}$.
0
votes
1 answer

Find the generating function for $c_n = na_{n-1}$

Let $A(x)$ be the generating function of the sequence $(a_n)$. What is the generating function of the sequence: $$ c_n = na_{n-1} $$ In principle I know these rules: $$ GF(a_{n-1}) = xA(x)\\ GF(na_n) = xA'(x) $$ I am not sure how to combine these…
0
votes
0 answers

Generating function for product of terms in a sequences

For motivation, consider multiplying a polynomial by the geometric series: $$ \frac{P}{1-x} = \sum a_i x^i \sum x^j = \sum c_kx^k$$ By the cauchy product rule, $$ c_k = \sum_{i=0}^k a_i$$ Now, we find that the coefficents of this new polynomial are…
0
votes
1 answer

How to solve $a+b+c=6; 2\le a\le 5, 2\le b\le 4, 1\le c\le 2$ with Generating Functions?

So here is the original problem For the inter-hostel six-a-side football tournament, a team of 6 players is to be chosen from 11 players consisting of 5 forwards, 4 defenders and 2 goalkeepers. The team must include at least 2 forwards, at least 2…
0
votes
1 answer

Find the generating function. Put stamps in order and for a specific value.

We have stamps of 3-cent, 4-cent and 20-cent and it is required to put stamps on an envelope of total cost n cents. The order in which we put the stamps does matter. For example for n = 40 the order [3][3][4][3][4][20][3] is different from…
0
votes
1 answer

Bank balance interest using Generating Functions

I have faced an interesting question: Jack puts $\$4,000 $ in his bank account with yearly interest rate of $5\%$. In the beginning of every year (starting the second year after the first deposit), he puts an additional $\$1,000$ in the same bank…
TheNotMe
  • 4,841
0
votes
2 answers

Find generating function expressing number of rectangles

I have a 3 x n rectangle. I need to find a generating function expressing the number of little 1 x 3 rectangles inside this bigger one. How can I do this? I have no idea how to even begin.
khernik
  • 1,369
0
votes
1 answer

exponential generating function of $n^n$

Question is simple: What's the EGF of $n^n$? I would also like to know the regular generating function too, but the first is a priority. Standard operations on GF's have failed to yield adequate results with me
0
votes
0 answers

self ref function and its generating function

Let $h_0 =1 $ and $ h_n = h_{n-1} + \sum \limits_{j=0}^{n-1} h_j h_{n-1-j}$ for $n\geq 1$, And i am asked to find closed form for $H(x) = \sum h_n x^n$ ? With a recurrence of finite number of previous terms I now know how to do it, but this is new…
Ahmad
  • 1,380
  • 1
  • 18
  • 37
0
votes
2 answers

Modifying generating functions to work for cases with distinct objects

A committee is made of three people. If there are two men and three woman to choose from, how many committees have one man and two women? Since there is exactly two distinct kinds of people, we must use two variable generating functions, So the…
0
votes
1 answer

Exponential generating function wilf 3.12

Fix $k>0$. Let $f(n,k)$ be the number of permutations of $n$ letters whose longest cycle is length $k$. Find the exponential generating function of ${f(n,k)}$ for $n≥0$ for fixed $k$. I know that if $F(n,k)$ is the number of n-permutations whose…
ymmas
  • 43
0
votes
0 answers

Generating Function for Iterated Exponentials

Taking the powerset of the empty set N times, we end up with a set of size 2^2^...^2 (N times). A generating function would then take the form $$1+2x+4x^2+16x^3+65536x^4+ ...$$ I was trying to find a sufficiently differentiable function with such a…
Troy McClure
  • 804
  • 4
  • 12
0
votes
1 answer

Manipulating formal power series help please

$\displaystyle{\frac{18}{(1+3x)^3}}$ $=\sum_{n=0}^\infty n(n-1)(-3)^n x^{n-2}$ If i got up to this, how could i get $\displaystyle{\frac{(1-2x)}{(1+3x)^3}}$ ? When i tried to multiply both side, some people says n-m some says n+m for $x^m$ Could…
Jono
  • 33
0
votes
3 answers

Find the ordinary generating function for number of partitions

let $a_n$ denote the number of ways to split $[n]$ into blocks of size $1, 2$, or $3$. Find the ordinary generating function for ${a_n}$. For this would I first split $n$ into three groups? From those three groups, I choose to either split them into…