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 ...
, particularly in
combinatorics
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 ...
, 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
or
. Stirling numbers of the second kind occur in the field of
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 ...
called
combinatorics
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 ...
and the study of
partitions. They are named after
James Stirling.
The Stirling numbers of the
first
First most commonly refers to:
* First, the ordinal form of the number 1
First or 1st may also refer to:
Acronyms
* Faint Images of the Radio Sky at Twenty-Centimeters, an astronomical survey carried out by the Very Large Array
* Far Infrared a ...
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 second kind. Identities linking the two kinds appear in the article on
Stirling numbers.
Definition
The Stirling numbers of the second kind, written
or
or with other notations, count the number of ways to
partition a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of
labelled objects into
nonempty unlabelled subsets. Equivalently, they count the number of different
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric, and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation. A simpler example is equ ...
s with precisely
equivalence classes that can be defined on an
element set. In fact, there is a
bijection
In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equival ...
between the set of partitions and the set of equivalence relations on a given set. Obviously,
:
for ''n'' ≥ 0, and
for ''n'' ≥ 1,
as the only way to partition an ''n''-element set into ''n'' parts is to put each element of the set into its own part, and the only way to partition a nonempty set into one part is to put all of the elements in the same part. Unlike
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 ...
, they can be calculated using a one-sum formula:
:
(see also
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 ...
for a proof of the latter formula)
The Stirling numbers of the first kind may be characterized as the numbers that arise when one expresses powers of an indeterminate ''x'' in terms of the
falling factorial
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 ...
s
:
(In particular, (''x'')
0 = 1 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 ...
.)
Stirling numbers of the second kind satisfy the relation
:
Notation
Various notations have been used for Stirling numbers of the second kind. The brace notation
was used by Imanuel Marx and Antonio Salmeri in 1962 for variants of these numbers. This led
Knuth to use it, as shown here, in the first volume of ''
The Art of Computer Programming
''The Art of Computer Programming'' (''TAOCP'') is a comprehensive multi-volume monograph written by the computer scientist Donald Knuth presenting programming algorithms and their analysis. it consists of published volumes 1, 2, 3, 4A, and 4 ...
'' (1968).
According to the third edition of ''The Art of Computer Programming'', this notation was also used earlier by
Jovan Karamata in 1935. The notation ''S''(''n'', ''k'') was used by
Richard Stanley in his book ''
Enumerative Combinatorics
Enumerative combinatorics is an area of combinatorics that deals with the number of ways that certain patterns can be formed. Two examples of this type of problem are counting combinations and counting permutations. More generally, given an inf ...
'' and also, much earlier, by many other writers.
The notations used on this page for Stirling numbers are not universal, and may conflict with notations in other sources.
Relation to Bell numbers
Since the Stirling number
counts set partitions of an ''n''-element set into ''k'' parts, the sum
:
over all values of ''k'' is the total number of partitions of a set with ''n'' members. This number is known as the ''n''th
Bell number
In combinatorial mathematics, the Bell numbers count the possible partitions of a set. These numbers have been studied by mathematicians since the 19th century, and their roots go back to medieval Japan. In an example of Stigler's law of epony ...
.
Analogously, the
ordered Bell number
In number theory and enumerative combinatorics, the ordered Bell numbers or Fubini numbers count the weak orderings on a set of n elements. Weak orderings arrange their elements into a sequence allowing ties, such as might arise as the outcome of ...
s can be computed from the Stirling numbers of the second kind via
:
Table of values
Below is a
triangular array
In mathematics and computing, a triangular array of numbers, polynomials, or the like, is a doubly indexed sequence in which each row is only as long as the row's own index. That is, the ''i''th row contains only ''i'' elements.
Examples
Notable ...
of values for the Stirling numbers of the second kind :
As with the
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 ...
, this table could be extended to , but the entries would all be 0.
Properties
Recurrence relation
Stirling numbers of the second kind obey the recurrence relation (first discovered by Masanobu Saka in his 1782 ''Sanpō-Gakkai''):
: