9 Special Counting Sequences
The number of sequences
of \(2n\) terms that can be formed by using exactly \(n\) +1s and exactly \(n\) -1s whose partial sums are always positive:
equals the nth Catalan number
Let the geneml term of a sequence be a polynomial of degree \(p\) in \(n\):
Then \(\Delta ^{p+1}h_n = 0\) for all \(n \geq 0\).
The geneml term of the sequence whose difference table has its Oth diagonal equal to
is a polynomial in n of degree \(p\) satisfying
Assume that the sequence \(h_0, h_1, h_2, \ldots , h_n, \ldots \) has a difference .table whose Oth diagonal equals
Then
If \(1 \leq k \leq p- 1\), then
The Stirling number of the second kind \(S(p, k)\) counts the number of partitions of a set of \(p\) elements into \(k\) indistinguishable boxes in which no box is empty.
For each integer \(k\) with \(0 \leq k \leq p\), we have
hence,
If \(p \geq 1\), then
If \(1 \leq k \leq p- 1\), then
The Stirling number \(s(p, k)\) of the first kind counts the number of arrangements of \(p\) objects into \(k\) nonempty circular permutations.
Let \(n\) be a positive integer. Let \(p_n^s\) equal the number of self-conjugate partitions of \(n\), and let \(p_n^t\) be the number of partitions of \(n\) into distinct odd parts. Then
Let \(n\) be a positive integer. Let \(p_n^{\textbf{o}}\) be the number of partitions of \(n\) into odd parts, and let \(p_n^{\textbf{d}}\) be the number of partitions of \(n\) into distinct parts. Then
Lexicographic order is a linear extension of the partial order of majorization on the set \(\mathcal{P}_n\) of partitions of a positive integer \(n\).
Let \(n\) be a positive integer. Let \(p_n^{\prime }\) be the number of partitions of \(n\) into an even number of distinct parts, and let \(p_n^{\prime \prime }\) be the number of partitions of \(n\) into an odd number of distinct parts. Then
where \(e_n\) is an error term given by \(e_n = (-1)^j\) if \(n\) is of the form \(j(3j\pm 1)/2\), and 0 otherwise.
The number of rectangular lattice paths from \((r, s)\) to \((p, q)\) equals the binomial coefficient
Let \(n\) be a nonnegative integer. Then the number of subdiagonal rectangular lattice paths from \((0,0)\) to \((n, n)\) equals the \(n\)th Catalan number
Let \(p\) and \(q\) be positive integers with \(p \geq q\). Then the number of subdiagonal rectangular lattice paths from \((0,0)\) to \((p, q)\) equals
Let \(r \leq \min \{ p, q\} \). Then
and
Let \(p\) and \(q\) be positive integers with \(p \geq q\), and let \(r\) be a nonnegative integer with \(r \leq q\). Then
and
The generating function for the sequence (\(s_n: n \geq 1\)) of small Schroder numbers is
The generating function for the sequence (\(R_n: n \geq 0\)) of large Schroder numbers is
The large and small Schroder numbers are related by
Let \(n\) be a positive integer. Then the number of dissections of a convex polygonal region of \(n + 1\) sides equals the small Schroder number \(s_n\).