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.
4,699 questions
1
vote
2
answers
103
views
Find the number of quadruples of non negative integers $(a,b,c,d)$ such that $105a + 70b + 42c + 30d = 2025$
Find the number of quadruples of non negative integers (a,b,c,d) such that $105a + 70b + 42c + 30d = 2025$
Simply using generating functions makes things very lengthy:
This problem is similar to ...
6
votes
2
answers
448
views
How do I solve this recurrence relation with a squared coefficient?
I started with the following recurrence relation
$$ s \left( n \right) = s \left( n-1 \right)^{2} - 1, \qquad s \left( 0 \right) = 2$$
and got to
$$\sum_{n=0}^{\infty}s\left(n+1\right)x^{n}=\sum_{n=0}^...
0
votes
0
answers
117
views
bijective proof of identity coefficient-extracted from negative-exponent Vandermonde identity, and the upper-triangular Stirling transforms
Context: Mircea Dan Rus's 2025 paper Yet another note on notation (a spiritual sequel to Knuth's 1991 paper Two notes on notation) introduces the syntax $x^{\{n\}}=x!{n\brace x}$ to denote the number ...
0
votes
1
answer
52
views
Extracting coefficients from generating function that is not well-defined in the zero point
In a physics problem I'm currently considering generating functions containing the term $1/\sqrt{t^2}$, where earlier in the derivation I have restricted my attention to the cases $\lvert xt\rvert<\...
1
vote
1
answer
97
views
Is it possible to solve recurrence relation with non-constant coefficient when coefficient is not explicitly given in terms of $n$?
I have a recurrence relationship as:
$$F_{n}=a_nF_{n+1}+a_nF_{n-1}$$
Is it possible to solve such a relation (using a generating function) when the explicit value of $a_n$ is given but not explicitly ...
0
votes
0
answers
85
views
When does this series converge to a positive integer
I have been working on different unsolved problems of mathematics, mainly for fun and to get a feel for what makes them so difficult. In the process, I stumbled upon this problem, and I am stuck:
Let $...
0
votes
0
answers
37
views
Conjectured recurrence for $n$-th row of Salie numbers independently of other rows
Let
$B_n$ be the $n$-th Bernoulli number.
$T(n,k)$ be A065547, i.e., an integer coefficients known as triangle of Salie numbers whose exponential generating function satisfies $$ \sum\limits_{n=0}^{\...
1
vote
2
answers
85
views
Exponential generating function for even Eulerian polynomials
Background
The Eulerian polynomials $A_{n}(\cdot) $ have the following exponential generating function (e.g.f.):
$$ \sum_{n=0}^{\infty} A_{n}(t) \frac{x^{n}}{n!} = \frac{t-1}{t-e^{(t-1)x}} \ . \tag{1}\...
2
votes
3
answers
248
views
Asymptotic approximation of an integer sequence
MOTIVATION
I think that computing the asymptotics of $F(x)$ in this answer would give a solution for this question.
QUESTION
For $n \ge 0$, let $u_{2n} = \binom{2n}{n}^2 / 4^{2n}$ and $u_{2n+1} = 0$. ...
1
vote
1
answer
85
views
New recurrence relation with unusual pattern Is there a closed-form solution? [closed]
I came across an interesting recurrence relation that I couldn’t find any references for:
$$
a_1 = 1, \quad a_{n} = \frac{1}{n^2} \sum_{k=1}^{n-1} k \, a_k \, a_{n-k} \quad \text{for } n \geq 2
$$
It ...
2
votes
0
answers
79
views
Symmetrization of functional derivatives
I'm dealing with a mathematical problem stemming from quantum field theory (QFT). However, at the moment, I'm not concerned with the physics aspect of it and, hence, I wish to view it in purely formal ...
1
vote
0
answers
61
views
Integer coefficients defined recursively with main diagonal equals A195979
Let
$A_n(x)$ be the family of exponential generating fucntions such that $$ A'_n(x) = nA_n(x) + A_{n-1}(x), \\ A_n(0) = 1, A_0(x) = 1. $$
$T(n,k)$ be an integer coefficients whose exponential ...
2
votes
1
answer
115
views
A combinatorial identity containing double sums: where to find it? [closed]
When I try to establish an explicit formula for computing the generalized Euler polynomials, I encounter with the following identity
\begin{equation*}
\sum_{m=0}^j\frac{(-1)^m}{2^m}\binom{j}{m}\sum_{...
1
vote
1
answer
59
views
Applying generating function coefficient to find total arrangements
So we have $12$ or fewer balls and $3$ boxes and he has to fill the boxes with the balls with the following constraints -
No box is empty
Box $B$ has at least $3$ balls &
Box $C$ has at most $5$ ...
5
votes
1
answer
402
views
counting number of integer solutions
Given $m,h$ we need to count the nonnegative solutions of $n_0 + n_1 + n_2 + n_3 + \dots + n_h = h$ subject to the constraint $\sum_{i = 0} in_i \equiv 0$ mod $m$. I have tried to use generating ...
1
vote
0
answers
84
views
Expansion identity for the Eulerian polynomials of the second order
Background
$\newcommand{\polylog}{\mathrm{PolyLog}}$
The Eulerian polynomials $A_{m}(\cdot)$ are defined by the exponential generating function:
\begin{equation}
\frac{1-x}{1-x \exp[ t(1-x) ] } = \...
4
votes
1
answer
378
views
How to prove the identity between two generating functions involving binomial coefficients?
Let
$$ \left(\sum_{k\geq 0} \binom{3k} k x^k \right)^4 = \sum_{k\geq 0} a_k x^k $$
and
$$ \log\left( \sum_{k\geq 0} \binom{3k+3} k x^k \right) = \sum_{k\geq 1} b_k \frac{x^k}{k}. $$
For example, the ...
0
votes
0
answers
64
views
In how many ways can one pay 2$ with coins of 5,10 and 50 cents? (not american currency, there are 5 ,10 and 50 cents coins)
I had come as far as creating the first steps of building a generating function for the number of ways to pay n dollars with the coins,
$x_1$- num of 5 cent coins
$x_2$- num of 10 cent coins
$x_3$- ...
0
votes
1
answer
194
views
Finding $\lim_{n \to \infty} \sum_{k=n}^{5n} \binom{k-1}{n-1}(1-x)^nx^{\,k-n}$
Recently I came across a problem that has me stumped. It is as follows:
Find the limit
$$
\lim_{n \to \infty} \sum_{k=n}^{5n} \binom{k-1}{n-1}(1-x)^nx^{\,k-n},\,\, x \in [0,1].
$$
I spent a long ...
0
votes
0
answers
84
views
Expected number of black tiles in $3 \times n$ grid when no $3$ in line
Background: this question which deals with the maximum number of black tiles.
Let's consider all the ways to paint the tiles of an $3 \times n$ grid white/black so that no three black tiles are in a ...
2
votes
0
answers
134
views
$\mathcal{P}$-rook polynomial of a grid [duplicate]
The $\mathcal{P}$-rook polynomial of a polyomino $\mathcal{P}$ is
$$
r_\mathcal{P}(T) = \sum_{k=0}^{r(\mathcal{P})} r_k(\mathcal{P})\ T^k,
$$ where $r_k(\mathcal{P})$ is the number of ways to place $...
-1
votes
1
answer
115
views
Why generating function of Catalan numbers only defined on $\vert x\vert<\frac{1}{4}$?
I am reading about Catalan number and their generating function but I donot understand the following.
Why is
$$C(x)=\sum_{n=0}^{}C_{n}x^{n}=\frac{1-\sqrt{1-4x}}{2x}$$
only defined for $\vert x\vert \...
4
votes
2
answers
251
views
Is there a closed form for the generating function for partitions of $n$ into up to $m$ unequal parts?
Wondering if there is a closed form for the generating function for partitions of $n$ into up to $m$ distinct parts.
For up to $m$ non-distinct parts, the generating function is just the simple
$[x^n]$...
3
votes
2
answers
208
views
Power series expansion involving exponential and binomial coefficients
It arose from an engineering context concerning power intake structures at the Mica Dam in British Columbia.
The engineers encountered a function of the form:
$$
f(u) = \frac{\exp(u + nu) + \exp(-nu)}{...
8
votes
4
answers
313
views
Asymptotics of $\displaystyle\sum_{i=1}^k i^{-2} (1-i^{-2})^n$ as $k\to +\infty$
For fixed $n$ a non-negative integer, I tried deriving the complete asymptotic expansion of,
$$S_k :=\sum_{i=1}^k i^{-2} (1-i^{-2})^n$$
as $k\to+\infty$ using generating functions and complex analysis,...
3
votes
5
answers
253
views
Find the number of positive integer solutions to the equation $x_1+x_2+x_3+x_4+x_5=2024$ such that $x_2 > 5$ and $x_1$ is divisible by 3
Problem. Find the number of positive integer solutions to the equation $x_1+x_2+x_3+x_4+x_5=2024$ such that $x_2>5$ and $x_1$ is divisible by 3.
I am going to use generating functions to solve this ...
1
vote
0
answers
43
views
How to derive Krattenthaler's explicit formula for the coefficients of Motzkin/Dyck path generating function
Equations (10.73) and (10.74) in Krattenthaler's Lattice Path Enumeration (from Bona's Handbook of Enumerative Combinatorics), give the generating functions for the counts of Dyck paths and Motzkin ...
24
votes
6
answers
666
views
Asymptotics of $a_n$ such that $n^2(a_{n+1}-2a_n+a_{n-1})=\lambda a_n$
Given $\lambda, a_0, a_1\in\mathbb{C}$, define $a_n$ for $n>1$ by the recurrence
$$
n^2(a_{n+1}-2a_n+a_{n-1})=\lambda a_n.\qquad(n>0)
$$
What is (the main term of) the asymptotics of $a_n$ as $n\...
5
votes
3
answers
117
views
Generating Functions and Recurrence Relations
I am currently reading Paul Zeitz's "The Art and Craft of Problem Solving, Third Edition" and I was confused on one of the examples.
"Define the sequence $a_{n}$ by $a_0 = 1$ and $a_n = ...
4
votes
2
answers
166
views
prove that $S\bigg(\frac{a}{1-a},\frac{b}{1-b},\frac{c}{1-c}\bigg)=\frac{1}{1-(a+b+c)}$
Assume that $S(a,b,c)$ represents the generating functions of all words consisting of alphabet ${a,b,c}$ such that no consecutive same letter allowed.
Then,for illustration, $$S(a,b,c)=\epsilon +a+b+c+...
1
vote
1
answer
70
views
A dice is rolled 31 times in a row. How many times does the sum of the results amount to 38? [closed]
I reached as far as finding the following generating function, but still I am unable to solve this question.
$$
\left[ x^{38} \right] \left( \frac{x(1 - x^6)}{1 - x} \right)^{31}
$$
8
votes
0
answers
309
views
The irrationality/transcendence of $\prod_{n=0}^\infty(1+1/n!)$
Is the following number demonstrably irrational? Is it demonstrably transcendental?
$$
\prod_{n=0}^{\infty} \left(1 + \frac{1}{n!} \right)
= 7.36430827236725725637277250963105\dots
= 7 + \frac{1}{2 + \...
1
vote
0
answers
50
views
Generating Functions - Number of numbers with sum of digits =18
The problem is : how many numbers with n digits at most, are with the digit sum = 18?
For the first digit we can't have zero and all the other $n−1$
digits they can be anything from $[0,..9]$
so, $$F(...
2
votes
0
answers
104
views
Why introduce $F[[x]]$ for infinite generating functions?
My instructor assigned us a topic on generating functions, and I’m currently reading some materials to try to understand them.
For finite sequences, I have observed that the generating function method ...
1
vote
0
answers
70
views
Reference for Chebyshev Polynomial (of the second kind) Identity
I am looking for a reference for the following identity involving Chebyshev polynomials of the second kind:
$$ \frac{\left(U_{n-1}\left(\frac{1-x}{2x}\right)\right)^2}{xU_{2n-1}\left(\frac{1-x}{2x}\...
3
votes
1
answer
165
views
From Algebra to a Lie Algebra element, a concrete combinatorics problem
I am working on a physics problem and I was able to reduce it to a "simple" combinatorial formula, the following one:
$$ \mathcal{I}_n = \sum_{\sigma\in S_n} \frac{(-1)^{s_\sigma+1}}{\binom{...
0
votes
0
answers
42
views
Doubt regarding generating functions of surjections with restrictions
The following question is from Bóna's "A Walk Through Combinatorics".
Let $s_0 = 1$, and for n > 0, let $s_n$ be the numbers of all surjections from [n] to [k], where n is a fixed ...
6
votes
2
answers
263
views
Asymptotic Behavior of a Recurrence Sequence
During my studies, I stumbled upon the following recurrence.
\begin{align*}
a_n = 2 \sum_{k=0}^n \binom{n}{k} \frac{a_k}{2^n}, \qquad n \ge 2,
\end{align*}
with initial conditions $a_0=a_1=1$.
I ...
2
votes
1
answer
240
views
Equality of two multivariable generating functions if their closed formulas for a single variable are same
Disclaimer: I am physics student interesting in mathematics, especially combinatorics. I dont have deep mathematical background, so I registered this community to learn. I wrote this disclaimer ...
5
votes
1
answer
179
views
Weighted Polynomial Inequality
Let $n > m \geq 1$ be integers, and let $x, y \geq 0$.
Consider the following inequality:
$$
m \left( \sum_{i = 0}^{m} \frac{1}{i + 1} \binom{m}{i} x^{m - i} y^i \right)
\left( \sum_{i = 0}^{n} \...
2
votes
0
answers
84
views
Closed form of an infinite sum over a closed form of a generating function?
I would like to know if a sum of the general type
$$\sum_{t=0}^{\infty} \frac{x^{at^2+bt+c}}{1-x^{dt+e}} $$
can be solved ($a,b,c,d,e$ being integers)? Maybe only for summing up finitely many terms ...
1
vote
0
answers
92
views
Can someone explain the details of the derivation of Binet’s formula (Fibonacci numbers) with Z-Transform?
I have serious issues with the derivation that I see everywhere. I’ve searched everywhere but couldn’t find a satisfactory answer. My questions are at the bottom but I’ll first show what the general ...
2
votes
1
answer
121
views
Showing $\sum_{k=0}^n\frac{(-1)^k}{k+1}\binom{n}{k}^2=\frac{(-1)^{n/2}\,n!}{(n+1) ((n/2)!)^2} $ for even $n$
I am stuck on solving the following:
If $n$ is an even integer, show that $$\binom{n}{0}^2 - \frac{1}{2} \binom{n}{1}^2 + \frac{1}{3} \binom{n}{2}^2 - \cdots + \frac{(-1)^n}{n+1} \binom{n}{n}^2 = \...
3
votes
1
answer
172
views
The meaning of $\exp\left(\frac{d}{dt} \pm \frac{d^2}{dt^2} \right)$
I'm solving a problem from a book "Introduction to discrete mathematics" by S. K. Lando. The problem is to find the action of $$\exp\left(\frac{d}{dt}\pm \frac{d^2}{dt^2}\right)$$
on ...
2
votes
1
answer
151
views
Coloring $1\times n$ board with $3$ colors, each color appearing an even and nonzero number of times
I am asked to solve the following problem:
Let $h_n$ be the number of ways to color the squares of a $1\times n$ board with red, white, and blue such that each color appears a nonzero, even number of ...
3
votes
3
answers
96
views
Special coefficient of $q$-binomial
I'm trying to determine the coefficient of $q^{k^2-k}$ in the $q$-binomial
$$\binom{2k}{k}_q.$$
So far, I've simplified it to
$$\binom{2k}{k}_q = \frac{[2k]_q!}{([k]_q!)^2} = \frac{(1-q^{2k})\cdots(1-...
4
votes
3
answers
233
views
A direct proof of $\ln((1+s)(1+t))=\ln(1+s)+\ln(1+t)$ in formal power series
I want to prove that
$$\ln((1+s)(1+t))=\ln(1+s)+\ln(1+t)$$
where $\ln(1+t)=t-\frac{t^2}{2}+\frac{t^3}{3}+...$ is the formal power series of logarithm. I know that
$$\frac{d}{dt}\ln(1+t)=\frac{1}{1+t}$$...
3
votes
0
answers
87
views
Three-variable recurrence relation with rotated indices
I'm looking for help in solving the recurrence relation
$$ a_{i,j,k}=1+p\,a_{j+1,k,i-1}+q\,a_{j,k+1,i-1}\quad\quad\quad\text{ for }i\ge1,\;j\ge1,\;k\ge0$$
with boundary conditions
\begin{align*}
...
0
votes
0
answers
25
views
Reducing rationality of Igusa's zeta function for system of equations to a single equation.
Let $F$ be a $p$-adic field and $f_1,\dots,f_r$ be non-constant polynomials over $F$ with integral coefficients. Let $N_n$ be the number of $\mod {\mathfrak p}^n$ solutions to $f_1,\dots,f_r\equiv0\...
4
votes
1
answer
126
views
Partitioning the set of non-negative integers in a certain way.
Context: I have been self-learning the theory of generating functions for my combinatorics class. And I have been solving these problems from MIT OCW. I have done all problems till $10$ on my own but ...