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

Finding Exponents of Generating Function $A(x)=\prod\limits_{k=1}^{\infty}\frac{1-x^{6k}}{(1-x^{2k})(1-x^{3k})} $

I have the following generating function: $$A(x)=\prod\limits_{k=1}^{\infty}\frac{1-x^{6k}}{(1-x^{2k})(1-x^{3k})} $$ Among multiple of $2$, we will get a multiple of 6 whenever we take a multiple that is a multiple of 3: possible multiples: $3m,…
Avv
  • 1,159
2
votes
3 answers

Building a tower using colorful blocks

How many possibilities are there to build a tower of n height, using colorful blocks, where: white block is of 1 height black, red, blue, green, yellow, pink blocks are equal to 2 heights I need to find the generating function formula for…
khernik
  • 1,369
2
votes
0 answers

Exponential generating function and Bernoulli number

The exponential generating function of Bernoulli number is $f(x)=x/(\exp(x)-1)$. $x$ can be treated as species of 1-element set. Also $\exp(x)-1$ can be treated as nonempty set. So, $f(x)*(\exp(x)-1)=x$ should have some combinatorial interpretation…
ueir
  • 1,211
  • 5
  • 11
2
votes
1 answer

Generating Functions to solve $\sum_{k=0}^{m-1} {{k+2} \choose {k}}$

I have to use generating functions to solve the sum $$\sum_{k=0}^{m-1} {{k+2} \choose {k}}$$ Now I did this: $\sum_{k=0}^{m-1} {{k+2} \choose {k}} = \sum_{k=0}^{m} {{k+2} \choose {k}} - {{m+2} \choose m} = \frac{1}{2} ([\sum_{k=0}^{m}…
TheNotMe
  • 4,841
2
votes
1 answer

How to find the coefficient of $x^k$ in $(x+1)(x+2)\cdots(x+N)?$

We are given $n,k$ and $n$ can be very large ($10^9-10^{14}$) but k is relatively small ($k<=2000$). I tried using sum and product of reciprocal of roots but it fails at the first step itself due to finding the sum of an h.p. I came up with a…
Sarthak
  • 39
2
votes
3 answers

Generating functions to calculate finite permutations

Ok, so suppose, I roll a seven sided die (has an extra side of 0) three times to find how many ways I get a sum of nine, I need take coefficent of $ x^9$ in this, $$ S=(1+x+x^2 + x^3 + x^4 + x^5 + x^6)^3$$ Now, a way which a friend told we could do…
2
votes
1 answer

generating functions for the sequence $\{\frac{k(k-1)}{2}\}$ and ${(k+1)(k+2)}$

For the following two sequences: (1) $\{(k+1)(k+2)\}$, (2) $\{\frac{k(k-1)}{2}\}$, I am trying to obtain the generating functions for both of them. I am going through a text finite difference equations and method of generating functions is…
Seth
  • 3,325
2
votes
1 answer

Moment generating Function: sample mean

Let $\bar{X_{n}}$ be the sample mean of a random sample of size n from a distribution which has a pdf of: f(x) = ${e^{-x}}$, for x> 0; 0, other wise. a) show that the mgf of $_{Y_{n}}=\sqrt{n}(\bar{X_{n}}-1)$ is $$\Psi _{Y_{n}}\left ( t \right…
JGH
  • 51
2
votes
1 answer

What is the sum of the coefficients of the generating function for Chebyshev polynomials?

The generating function for Chebyshev polynomials of the first kind is given as: $$\sum_{n=0}^{\infty}T_n(x)t^n=\frac{1-xt}{1-2xt+t^2}$$ As I understand it, the sum of the coefficients of the generating function for Chebyshev polynomials is given by…
2
votes
1 answer

Find the number of ways to choose $7$ integers Generating Funciton

Find the number of ways to choose $7$ integers from $\{1, 2,.., x\}$ where the gap between the smallest integer and the 2nd smallest one is at least $5$, and the gap between the 2nd and 3rd smallest one is at least $8$. I know that the first part…
2
votes
4 answers

solving a problem with generating functions

This is a problem from a course of MIT. Find the coefficients of the power series $y = 1 + 3 x + 15 x^2 + 184 x^3 + 495 x^4 + \cdots $ satisfying $$ (27 x - 4)y^3 + 3y + 1 = 0 . $$ This is an interesting problem, but I am really cluelss (My naive…
John
  • 479
2
votes
2 answers

Finding the closed form of a generating function

Given that $k$ is a positive integer and $f(x)$ is the generating function of the sequence $(b_0,b_1,b_2,...)$ where $b_n = {n \choose k}\;\, \forall \;n$, show that: $$f(x)=\frac{x^k}{(1-x)^{k+1}}$$ I tried writing a few terms of…
2
votes
1 answer

Solving Generating Function when there is condition on two variables.

" Find the number of ways of giving 10 identical gift boxes to 6 people : A, B, C, D, E, F in such a way that total number of boxes given to A and B together does not exceed 4. " I tried it in this way : [$x^{10}$] $(1+x^{1}+...+x^{4})^{2}*(…
2
votes
1 answer

Art of computer programming 1.2.9 D

I was carefully reading section 1.2.9 subsection D: Change of z in a generating function. I don't understand the premises and Knuths reasoning in the marked paragraphs. First 2 paragraphs I can prove myself.
user4035
  • 351
2
votes
2 answers

How does the notation of PGF read in plain English?

How does the above notation of PGF read in plain English? Is it $\alpha$ to the power $X$? What does it even mean?
user366312
  • 1,641