Stirling numbers of the second kind, often denoted , count the number of ways to partition a set of labeled objects into nonempty subsets. For example, equals because the three elements can be grouped as {1,2}|{3}, {1,3}|{2}, or {2,3}|{1}. These numbers reveal deep combinatorial relationships, bridging topics such as surjections, Bell numbers, and the principle of inclusion-exclusion.
One way to compute Stirling numbers uses the recursion
The base cases include and
An alternative computation uses an explicit summation involving binomial coefficients:
This formula highlights connections between Stirling numbers and binomial coefficients. It also provides a path to deriving generating functions and other analytic properties.
Stirling numbers appear in many counting problems. They determine the coefficients when expanding falling factorials in terms of ordinary powers, a technique used in finite difference calculus. In probability, they describe the number of ways to distribute distinct balls into identical boxes with no empty boxes. They also help compute moments of certain probability distributions through Bell polynomials.
The total number of partitions of an
Enter nonnegative integers
James Stirling introduced these numbers in the 18th century while investigating series expansions and approximations. His work laid the groundwork for later developments in combinatorics and analysis. The notations we use today evolved over time as mathematicians recognized the significance of set partitions in many fields. Stirling numbers now appear in enumerative combinatorics, algebraic topology, and even statistical mechanics. Exploring them enriches your understanding of how discrete structures are organized and analyzed.
Although this introduction summarizes the essentials, entire texts are devoted to Stirling numbers and their generalizations. They offer a gateway to more advanced topics such as partitions of multisets, restricted growth strings, and q-analogs. Delving into these ideas provides a deeper appreciation for the elegance and versatility of combinatorial mathematics.
Compute the singular value decomposition of a 2x2 matrix to understand matrix structure.
Generate the Gram matrix for up to four vectors and explore inner products in linear algebra.
Calculate the area and approximate perimeter of an ellipse from its axes.