User:Tokenzero/Stirling number
In mathematics, Stirling numbers arise in a variety of analytic and combinatorial problems. They are named after James Stirling, who introduced them in the 18th century. Two different sets of numbers bear this name: the Stirling numbers of the first kind and the Stirling numbers of the second kind. Additionally, Lah numbers are sometimes referred to as Stirling numbers of the third kind. Each kind is detailed in its respective article, this one serving as a description of relations between them.
A common property of all three kinds is that they describe coefficients relating three different sequences of polynomials that frequently arise in combinatorics. Moreover, all three can be defined as the number of partitions of n elements into k non-empty subsets, with different ways of counting orderings within each subset.
Notation
[edit]Several different notations for Stirling numbers are in use. Common notations are:
for unsigned Stirling numbers of the first kind, which count the number of permutations of n elements with k disjoint cycles,
for ordinary (signed) Stirling numbers of the first kind, and
for Stirling numbers of the second kind, which count the number of ways to partition a set of n elements into k nonempty subsets.[1]
For example, the sum is the number of all permutations, while the sum is the nth Bell number.
Abramowitz and Stegun use an uppercase S and a blackletter S, respectively, for the first and second kinds of Stirling number. The notation of brackets and braces, in analogy to binomial coefficients, was introduced in 1935 by Jovan Karamata and promoted later by Donald Knuth. (The bracket notation conflicts with a common notation for Gaussian coefficients.[2]) The mathematical motivation for this type of notation, as well as additional Stirling number formulae, may be found on the page for Stirling numbers and exponential generating functions.
Expansions of falling and rising factorials
[edit]Stirling numbers express coefficients in expansions of falling and rising factorials (also known as the Pochhammer symbol) as polynomials.
That is, the falling factorial, defined as , is a polynomial in x of degree n whose expansion is
with (signed) Stirling numbers of the first kind as coefficients.
Note that (x)0 = 1 because it is an empty product. Combinatorialists also sometimes use the notation for the falling factorial, and for the rising factorial.[3] (Confusingly, the Pochhammer symbol that many use for falling factorials is used in special functions for rising factorials.)
Similarly, the rising factorial, defined as , is a polynomial in x of degree n whose expansion is
with unsigned Stirling numbers of the first kind as coefficients.
Stirling numbers of the second kind express reverse relations:
and
As change of basis coefficients
[edit]Considering the set of polynomials in the (indeterminate) variable x as a vector space, each of the three sequences
is a basis. That is, every polynomial in x can be written as a sum for some unique coefficients (similarly for the other two bases). The above relations then express the change of basis between them, as summarized in the following commutative diagram:
The coefficients for the two bottom changes are described by the Lah numbers below. Since coefficients in any basis are unique, one can define Stirling numbers this way, as the coefficients expressing polynomials of one basis in terms of another, that is, the unique numbers relating with falling and rising factorials as above.
As inverse matrices
[edit]The Stirling numbers of the first and second kinds can be considered inverses of one another:
and
where is the Kronecker delta. These two relationships may be understood to be matrix inverse relationships. That is, let s be the lower triangular matrix of Stirling numbers of the first kind, whose matrix elements The inverse of this matrix is S, the lower triangular matrix of Stirling numbers of the second kind, whose entries are Symbolically, this is written
Although s and S are infinite, so calculating a product entry involves an infinite sum, the matrix multiplications work because these matrices are lower triangular, so only a finite number of terms in the sum are nonzero.
Example
[edit]Expressing a polynomial in the basis of falling factorials is useful for calculating sums of the polynomial evaluated at consecutive integers. Indeed, the sum of a falling factorial is simply expressed as another falling factorial (for k≠-1)
This is analogous to the integral , though the sum should be over integers i strictly less than n.
For example, the sum of fourth powers of integers up to n (this time with n included), is:
Here the Stirling numbers can be computed from their definition as the number of partitions of 4 elements into k non-empty unlabeled subsets.
In contrast, the sum in the standard basis is given by Faulhaber's formula, which in general is more complex.
Lah numbers
[edit]The Lah numbers are sometimes called Stirling numbers of the third kind.[4] By convention, and if or .
These numbers are coefficients expressing falling factorials in terms of rising factorials and vice-versa:
- and
As above, this means they express the change of basis between the bases and , completing the diagram. In particular, one formula is the inverse of the other, thus:
Similarly, composing for example the change of basis from to with the change of basis from to gives the change of basis directly from to :
In terms of matrices, if denotes the matrix with entries and denotes the matrix with entries , then one is the inverse of the other: . Similarly, composing the matrix of unsigned Stirling numbers of the first kind with the matrix of Stirling numbers of the second kind gives the Lah numbers: .
The numbers can be defined as the number of partitions of n elements into k non-empty subsets, each of which is unordered, cyclically ordered, or linearly ordered, respectively. In particular, this implies the following inequalities:
Symmetric formulae
[edit]Abramowitz and Stegun give the following symmetric formulae that relate the Stirling numbers of the first and second kind.[5]
and
Stirling numbers with negative integral values
[edit]The Stirling numbers can be extended to negative integral values, but not all authors do so in the same way.[6][7][8] Regardless of the approach taken, it is worth noting that Stirling numbers of first and second kind are connected by the relations:
when n and k are nonnegative integers. So we have following table for :
n \ k | -1 | -2 | -3 | -4 | -5 |
-1 | 1 | 1 | 1 | 1 | 1 |
-2 | 0 | 1 | 3 | 7 | 15 |
-3 | 0 | 0 | 1 | 6 | 25 |
-4 | 0 | 0 | 0 | 1 | 10 |
-5 | 0 | 0 | 0 | 0 | 1 |
Donald Knuth[8] defined the more general Stirling numbers by extending a recurrence relation to all integers. In this approach, and are zero if n is negative and k is nonnegative, or if n is nonnegative and k is negative, and so we have, for any integers n and k,
- .
On the other hand, for positive integers n and k, David Branson[7] defined , , , and (but not or ). In this approach, from
- ,
which is a generalizarion of the Recurrence relation of the Stirling numbers of the first kind, e.g. ,
we have following table for :
n \ k | 0 | 1 | 2 | 3 | 4 |
-1 | 1 | 1 | 1 | 1 | 1 |
-2 | |||||
-3 | |||||
-4 | |||||
-5 |
Note that:
where is the Bell number of , e.g.
See also
[edit]- Bell polynomials
- Cycles and fixed points
- Lah number
- Pochhammer symbol
- Polynomial sequence
- Stirling transform
- Touchard polynomials
References
[edit]- ^ Ronald L. Graham, Donald E. Knuth, Oren Patashnik (1988) Concrete Mathematics, Addison-Wesley, Reading MA. ISBN 0-201-14236-8, p. 244.
- ^ Donald Knuth
- ^ Aigner, Martin (2007). "Section 1.2 - Subsets and Binomial Coefficients". A Course In Enumeration. Springer. p. 561. ISBN 3-540-39032-4.
- ^ Sándor, Jozsef; Crstici, Borislav (2004). Handbook of Number Theory II. Kluwer Academic Publishers. p. 464. ISBN 9781402025464.
- ^ Goldberg, K.; Newman, M; Haynsworth, E. (1972), "Stirling Numbers of the First Kind, Stirling Numbers of the Second Kind", in Abramowitz, Milton; Stegun, Irene A. (eds.), Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 10th printing, New York: Dover, pp. 824–825
- ^ Loeb, Daniel E. (1992) [Received 3 Nov 1989]. "A generalization of the Stirling numbers" (PDF). Discrete Mathematics. 103: 259–269. Retrieved 26 Mar 2018.
- ^ a b Branson, David (August 1994). "An extension of Stirling numbers" (PDF). The Fibonacci Quarterly. Retrieved Dec 6, 2017.
- ^ a b Knuth, D.E. "Two notes on notation" (TeX source).
Further reading
[edit]- Adamchik, Victor (1997). "On Stirling Numbers and Euler Sums" (PDF). Journal of Computational and Applied Mathematics. 79: 119–130. doi:10.1016/s0377-0427(96)00167-7.
- Benjamin, Arthur T.; Preston, Gregory O.; Quinn, Jennifer J. (2002). "A Stirling Encounter with Harmonic Numbers" (PDF). Mathematics Magazine. 75 (2): 95–103. doi:10.2307/3219141.
- Boyadzhiev, Khristo N. (2012). "Close encounters with the Stirling numbers of the second kind" (PDF). Mathematics Magazine. 85 (4): 252–266. doi:10.4169/math.mag.85.4.252.
- Comtet, Louis (1970). "Valeur de s(n, k)". Analyse combinatoire, Tome second (in French). Presses universitaires de France: 51.
- Comtet, Louis (1974). Advanced Combinatorics: The Art of Finite and Infinite Expansions. Dordrecht-Holland/Boston-U.S.A.: Reidel Publishing Company.
- Hsien-Kuei Hwang (1995). "Asymptotic Expansions for the Stirling Numbers of the First Kind". Journal of Combinatorial Theory, Series A. 71 (2): 343–351. doi:10.1016/0097-3165(95)90010-1.
- Knuth, D.E. "Two notes on notation" (TeX source).
- Miksa, Francis L. (January 1956). "Stirling numbers of the first kind: 27 leaves reproduced from typewritten manuscript on deposit in the UMT File". Mathematical Tables and Other Aids to Computation: Reviews and Descriptions of Tables and Books. 10 (53): 37–38.
- Miksa, Francis L. (1972) [1964]. "Combinatorial Analysis, Table 24.4, Stirling Numbers of the Second Kind". In Abramowitz, Milton; Stegun, Irene A. (eds.). Handbook of Mathematical Functions (with Formulas, Graphs and Mathematical Tables). 55. U.S. Dept. of Commerce, National Bureau of Standards, Applied Math. p. 835.
- Mitrinović, Dragoslav S. (1959). "Sur les nombres de Stirling de première espèce et les polynômes de Stirling" (PDF). Publications de la Faculté d'Electrotechnique de l'Université de Belgrade, Série Mathématiques et Physique (in French) (23): 1–20. ISSN 0522-8441.
- O'Connor, John J.; Robertson, Edmund F. (September 1998). "James Stirling (1692–1770)".
- Sixdeniers, J. M.; Penson, K. A.; Solomon, A. I. (2001). "Extended Bell and Stirling Numbers From Hypergeometric Exponentiation" (PDF). Journal of Integer Sequences. 4: 01.1.4.
- Spivey, Michael Z. (2007). "Combinatorial sums and finite differences". Discrete Math. Vol. 307, no. 24. pp. 3130–3146. doi:10.1016/j.disc.2007.03.052.
- Sloane, N. J. A. (ed.). "Sequence A008275 (Stirling numbers of first kind)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- Sloane, N. J. A. (ed.). "Sequence A008277 (Stirling numbers of 2nd kind)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- "Stirling numbers of the first kind, s(n,k)". PlanetMath.
- "Stirling numbers of the second kind, S(n,k)". PlanetMath.