In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, Stirling numbers arise in a variety of
analytic
Analytic or analytical may refer to:
Chemistry
* Analytical chemistry, the analysis of material samples to learn their chemical composition and structure
* Analytical technique, a method that is used to determine the concentration of a chemical ...
and
combinatorial
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
problems. They are named after
James Stirling, who introduced them in a purely algebraic setting in his book ''Methodus differentialis'' (1730). They were rediscovered and given a combinatorial meaning by Masanobu Saka in his 1782 ''Sanpō-Gakkai'' ''(The Sea of Learning on Mathematics)''.
Two different sets of numbers bear this name: the
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 unsigned Stirling numbers of the first kind count permutations according to their number of cycles (counting fi ...
and the
Stirling numbers of the second kind
In mathematics, particularly in combinatorics, a Stirling number of the second kind (or Stirling partition number) is the number of ways to partition a set of ''n'' objects into ''k'' non-empty subsets and is denoted by S(n,k) or \textstyle \lef ...
. 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, where each subset is endowed with a certain kind of order (no order, cyclical, or linear).
Notation
Several different notations for Stirling numbers are in use. Ordinary (signed) Stirling numbers of the first kind are commonly denoted:
:
Unsigned Stirling numbers of the first kind, which count the number of
permutation
In mathematics, a permutation of a set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example of the first mean ...
s of ''n'' elements with ''k'' disjoint
cycle
Cycle, cycles, or cyclic may refer to:
Anthropology and social sciences
* Cyclic history, a theory of history
* Cyclical theory, a theory of American political history associated with Arthur Schlesinger, Sr.
* Social cycle, various cycles in ...
s, are denoted:
:
Stirling numbers of the second kind, which count the number of ways to partition a set of ''n'' elements into ''k'' nonempty subsets:
:
Abramowitz and Stegun
''Abramowitz and Stegun'' (''AS'') is the informal name of a 1964 mathematical reference work edited by Milton Abramowitz and Irene Stegun of the United States National Bureau of Standards (NBS), now the National Institute of Standards and T ...
use an uppercase
and a
blackletter
Blackletter (sometimes black letter or black-letter), also known as Gothic script, Gothic minuscule or Gothic type, was a script used throughout Western Europe from approximately 1150 until the 17th century. It continued to be commonly used for ...
, respectively, for the first and second kinds of Stirling number. The notation of brackets and braces, in analogy to
binomial coefficients
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the te ...
, was introduced in 1935 by
Jovan Karamata
Jovan Karamata ( sr-Cyrl, Јован Карамата; February 1, 1902 – August 14, 1967) was a Serbian mathematician and university professor. He is remembered for contributions to analysis, in particular, the Tauberian theory and the theory ...
and promoted later by
Donald Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist and mathematician. He is a professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of comp ...
, though the bracket notation conflicts with a common notation for
Gaussian coefficient
In mathematics, the Gaussian binomial coefficients (also called Gaussian coefficients, Gaussian polynomials, or ''q''-binomial coefficients) are ''q''-analogs of the binomial coefficients. The Gaussian binomial coefficient, written as \binom nk ...
s. 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.
Another infrequent notation is
and
.
Expansions of falling and rising factorials
Stirling numbers express coefficients in expansions of
falling and rising factorials
In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial
\begin
(x)_n = x^\underline &= \overbrace^ \\
&= \prod_^n(x-k+1) = \prod_^(x-k) .
\end ...
(also known as the Pochhammer symbol) as polynomials.
That is, the falling factorial, defined as
is a polynomial in of degree whose expansion is
:
with (signed) Stirling numbers of the first kind as coefficients.
Note that
by convention, because it is an
empty product
In mathematics, an empty product, or nullary product or vacuous product, is the result of multiplication, multiplying no factors. It is by convention equal to the multiplicative identity (assuming there is an identity for the multiplication operat ...
. The notations
for the falling factorial and
for the rising factorial are also often used. (Confusingly, the Pochhammer symbol that many use for ''falling'' factorials is used in
special function
Special functions are particular mathematical functions that have more or less established names and notations due to their importance in mathematical analysis, functional analysis, geometry, physics, or other applications.
The term is defined by ...
s for ''rising'' factorials.)
Similarly, the rising factorial, defined as
is a polynomial in of degree whose expansion is
:
with unsigned Stirling numbers of the first kind as coefficients.
One of these expansions can be derived from the other by observing that
Stirling numbers of the second kind express the reverse relations:
:
and
:
As change of basis coefficients
Considering the set of
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s in the (indeterminate) variable ''x'' as a vector space,
each of the three sequences
:
is a
basis
Basis is a term used in mathematics, finance, science, and other contexts to refer to foundational concepts, valuation measures, or organizational names; here, it may refer to:
Finance and accounting
* Adjusted basis, the net cost of an asse ...
.
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
In mathematics, an ordered basis of a vector space of finite dimension allows representing uniquely any element of the vector space by a coordinate vector, which is a sequence of scalars called coordinates. If two different bases are conside ...
between them, as summarized in the following
commutative diagram
350px, The commutative diagram used in the proof of the five lemma
In mathematics, and especially in category theory, a commutative diagram is a diagram such that all directed paths in the diagram with the same start and endpoints lead to the s ...
:
:
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.
Falling factorials define, up to scaling, the same polynomials as
binomial coefficients
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the te ...
:
. The changes between the standard basis
and the basis
are thus described by similar formulas:
:
.
Example
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 falling factorials with fixed ''k'' can expressed as another falling factorial (for
)
:
This can be proved by
induction.
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
In mathematics, Faulhaber's formula, named after the early 17th century mathematician Johann Faulhaber, expresses the sum of the ''p''-th powers of the first ''n'' positive integers
\sum_^ k^p = 1^p + 2^p + 3^p + \cdots + n^p
as a polynomial in&n ...
, which in general is more complicated.
As inverse matrices
The Stirling numbers of the first and second kinds can be considered inverses of one another:
:
and
:
where
is the
Kronecker delta
In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise:
\delta_ = \begin
0 &\text i \neq j, \\
1 &\ ...
. These two relationships may be understood to be matrix inverse relationships. That is, let ''s'' be the
lower triangular matrix
In mathematics, a triangular matrix is a special kind of square matrix. A square matrix is called if all the entries ''above'' the main diagonal are zero. Similarly, a square matrix is called if all the entries ''below'' the main diagonal are z ...
of Stirling numbers of the first kind, whose matrix elements
The
inverse
Inverse or invert may refer to:
Science and mathematics
* Inverse (logic), a type of conditional sentence which is an immediate inference made from another conditional sentence
* Additive inverse, the inverse of a number that, when added to the ...
of this matrix is ''S'', the
lower triangular matrix
In mathematics, a triangular matrix is a special kind of square matrix. A square matrix is called if all the entries ''above'' the main diagonal are zero. Similarly, a square matrix is called if all the entries ''below'' the main diagonal are z ...
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.
Lah numbers
The Lah numbers
are sometimes called Stirling numbers of the third kind.
By convention,
and
if