Stirling numbers of the first kind
In mathematics, especially in combinatorics, Stirling numbers of the first kind arise in the study of permutations. In particular, the Stirling numbers of the first kind count permutations according to their number of cycles (counting fixed points as cycles of length one).
(The Stirling numbers of the first and second kind can be understood as inverses of one another when viewed as triangular matrices. This article is devoted to specifics of Stirling numbers of the first kind. Identities linking the two kinds appear in the article on Stirling numbers in general.)
- 1 Definitions
- 2 Recurrence relation
- 3 Table of values for small n and k
- 4 Identities involving Stirling numbers of the first kind
- 5 References
The original definition of Stirling numbers of the first kind was algebraic. These numbers, usually written s(n, k), are signed integers whose sign, positive or negative, depends on the parity of n − k. Afterwards, the absolute values of these numbers, |s(n, k)|, which are known as unsigned Stirling numbers of the first kind, were found to count permutations, so in combinatorics the (signed) Stirling numbers of the first kind, s(n, k), are often defined as counting numbers multiplied by a sign factor. That is the approach taken on this page.
Most identities on this page are stated for unsigned Stirling numbers. Note that the notations on this page are not universal.
Unsigned Stirling numbers of the first kind
The unsigned Stirling numbers of the first kind are denoted in various ways by different authors. Common notations are and . (The last is also common notation for the Gaussian coefficients.) They count the number of permutations of n elements with k disjoint cycles. For example, of the permutations of three elements, there is one permutation with three cycles (the identity permutation, given in one-line notation by or in cycle notation by ), three permutations with two cycles (, , and ) and two permutations with one cycle ( and ). Thus, , and .
As a second example, the image at right shows that : the symmetric group on 4 objects has 3 permutations of the form
- —2 orbits, each of size 2,
and 8 permutations of the form
- —1 orbit of size 3 and 1 orbit of size 1.
The unsigned Stirling numbers also arise as coefficients of the rising factorial, i.e.,
Thus, for example, , which matches the computations in the preceding paragraph.
Stirling numbers of the first kind
Stirling numbers of the first kind (sometimes with the qualifying adjective signed) are given by
They are the coefficients in the expansion
where is the falling factorial
The unsigned Stirling numbers of the first kind can be calculated by the recurrence relation
for , with the initial conditions
for n > 0.
It follows immediately that the (signed) Stirling numbers of the first kind satisfy the recurrence
We prove the recurrence relation using the definition of Stirling numbers in terms of rising factorials. Distributing the last term of the product, we have
The coefficient of xk on the left-hand side of this equation is . The coefficient of xk in n(x)(n) is , while the coefficient of xk in x (x)(n) is . Since the two sides are equal as polynomials, the coefficients of xk on both sides must be equal, and the result follows.
We prove the recurrence relation using the definition of Stirling numbers in terms of permutations with a given number of cycles (or equivalently, orbits).
Consider forming a permutation of n + 1 objects from a permutation of n objects by adding a distinguished object. There are exactly two ways in which this can be accomplished. We could do this by forming a singleton cycle, i.e., leaving the extra object alone. This increases the number of cycles by 1 and so accounts for the term in the recurrence formula. We could also insert the new object into one of the existing cycles. Consider an arbitrary permutation of n objects with k cycles, and label the objects a1, ..., an, so that the permutation is represented by
To form a new permutation of n + 1 objects and k cycles one must insert the new object into this array. There are n ways to perform this insertion, inserting the new object immediately following any of the n already present. This explains the term of the recurrence relation. These two cases include all possibilities, so the recurrence relation follows.
Table of values for small n and k
Below is a triangular array of unsigned values for the Stirling numbers of the first kind, similar in form to Pascal's triangle. These values are easy to generate using the recurrence relation in the previous section.
|n \ k||0||1||2||3||4||5||6||7||8||9|
Identities involving Stirling numbers of the first kind
Note that although
- , we have if n > 0
- if k > 0, or more generally if k > n.
Similar relationships involving the Stirling numbers hold for the Bernoulli polynomials. Many relations for the Stirling numbers shadow similar relations on the binomial coefficients. The study of these 'shadow relationships' is termed umbral calculus and culminates in the theory of Sheffer sequences.
These identities may be derived by enumerating permutations directly. For example, how many permutations on [n] are there that consist of n − 3 cycles? There are three possibilities:
- n − 6 fixed points and three two-cycles
- n − 5 fixed points, a three-cycle and a two-cycle, and
- n − 4 fixed points and a four-cycle.
We enumerate the three types, as follows:
- choose the six elements that go into the two-cycles, decompose them into two-cycles and take into account that the order of the cycles is not important:
- choose the five elements that go into the three-cycle and the two-cycle, choose the elements of the three-cycle and take into account that three elements generate two three-cycles:
- choose the four elements of the four-cycle and take into account that four elements generate six four-cycles:
Sum the three contributions to obtain
Other relations involving Stirling numbers of the first kind include
where Hn is a harmonic number, and
where Hn(m) is a generalized harmonic number. For a generalization of this relation, see below.
A variety of identities may be derived by manipulating the generating function:
Using the equality
it follows that
(This identity is valid for formal power series, and the sum converges in the complex plane for |z| < 1.) Other identities arise by exchanging the order of summation, taking derivatives, making substitutions for z or u, etc. For example, we may derive:
where is the Riemann zeta function.
A simple sum is
or in a more general relationship,
can be proved by the techniques on the page Stirling numbers and exponential generating functions.
The Stirling number s(n,n-p) can be found from the formula
where The sum is a sum over all partitions of p.
Relation to harmonic numbers
Stirling numbers of the first kind can be expressed in terms of the harmonic numbers
and the Gamma function, as follows:
where w(n, 0) = 1 and
for k > 0.
- The Art of Computer Programming
- Concrete Mathematics
- M. Abramowitz, I. Stegun, ed. (1972). "§24.1.3. Stirling Numbers of the First Kind". Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (9th ed.). New York: Dover. p. 824.
- Stirling numbers of the first kind, s(n,k) at PlanetMath.org. .
- "Sloane's A008275 : Triangle read by rows of Stirling numbers of first kind", The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.