Log in Sign up
Back to Discover
🔢

Stirling numbers of the second kind

math Maturity 11-13

You can group things in many ways.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg
Imagine you have four toys. You can put them into small groups. You can put them into big groups. This helps us count the ways to share. It is a fun math puzzle. How many groups can you make?

51 words

You can group things in many ways.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg
Imagine you have four toys. You can put them into small groups. You can put them into big groups. This helps us count the ways to share.

Math has a special name for this. It is called a Stirling number. These numbers help us count groups. We can name these numbers after James Stirling.

These numbers work in many ways. You can use them for poems. They can count rhyme schemes for lines. This is a fun math puzzle.

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg
It is a way to see patterns in groups.

108 words

Imagine you have a set of items, like four different toys. You want to put them into groups. Each group must have at least one toy.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg
You can put all four toys into one big group. Or, you can put each toy into its own small group. You can even make two or three groups.

Stirling numbers of the second kind help us count these ways. These numbers are named after James Stirling. We use them in a field of math called combinatorics. This field studies how we count and arrange things.

These numbers can also help with poems. They can count the rhyme schemes for a poem. A rhyme scheme is the pattern of sounds at the end of lines. If a poem has three lines, there are five ways to rhyme. You could use one sound for all lines. You could use two or three different sounds.

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg

If you add up all the Stirling numbers for a set, you get a Bell number. The Bell number tells you the total ways to group everything. These numbers help us see many patterns in the world.

199 words

Imagine you have a collection of unique items, like four different colored toys. You want to split these toys into several groups. Every group must have at least one toy inside it. You could put all the toys into one single large group. You could also give every toy its own tiny group. There are many other ways to mix them into two or three groups.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg
Mathematicians use a special tool to count these different ways. This tool is called a Stirling number of the second kind.

These numbers belong to a branch of math called combinatorics. This field studies how we count, arrange, and group things. A Stirling number of the second kind tells us how many ways we can partition a set of $n$ objects into $k$ non-empty subsets. In this math, "partition" means splitting a whole set into smaller parts. The objects are labeled, meaning each one is distinct. However, the subsets themselves are unlabeled. This means it does not matter which group is called "Group A" or "Group B."

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg

People have studied these numbers for a long time. They are named after a mathematician named James Stirling. In 1782, a man named Masanobu Saka discovered a way to find these numbers using a recurrence relation. This is a rule that uses smaller numbers to find a bigger one. Later, in 1962, Imanuel Marx and Antonio Salmeri used a special brace notation for these numbers. Donald Knuth also used this notation in his famous book from 1968.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg

There are many interesting facts about these numbers. If you add up all the Stirling numbers for a specific set, you get a Bell number. The Bell number shows the total number of ways to group everything. For example, if you have four items, the Stirling numbers for one, two, three, and four groups are 1, 7, 6, and 1. Adding these together gives you 15, which is the fourth Bell number.

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg
These numbers also appear in the study of rhyme schemes. They can count how many ways a poem with $n$ lines can rhyme.
Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg

You can see these patterns in many places. They help scientists understand the moments of a Poisson distribution. They also appear when looking at random permutations. Even the way words sound in a poem follows these mathematical rules. If a poem has three lines, there are five total rhyme schemes. You might have one rhyme (aaa) or three rhymes (abc). There are also three ways to have two rhymes (aab, aba, abb).

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg
Math is always there, even in our songs and stories.

466 words

Stirling numbers of the second kind are essential tools in combinatorics. Combinatorics is the branch of mathematics that studies counting, arrangement, and grouping. Specifically, these numbers count how many ways you can partition a set of $n$ labeled objects into $k$ non-empty, unlabeled subsets. In this context, "labeled" means every object is unique, like having a red ball, a blue ball, and a green ball. "Unlabeled" means the groups themselves have no names or specific order. For example, putting a red ball in group one and a blue ball in group two is the same as putting the blue ball in group one and the red ball in group two.

Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg

To understand the mechanism, imagine you are distributing $n$ distinct items into $k$ identical boxes. Every box must contain at least one item to be considered a non-empty subset. One way to calculate these numbers is through a recurrence relation. This is a rule that builds larger numbers from smaller ones. First discovered by Masanobu Saka in 1782, the relation is $S(n, k) = S(n-1, k-1) + k \cdot S(n-1, k)$. This formula works by looking at a single object. Either that object sits alone in its own subset, which is the $S(n-1, k-1)$ part, or it joins one of $k$ existing subsets already formed by the other objects, which is the $k \cdot S(n-1, k)$ part.

There are several distinct types and variations of these numbers. The most common are the standard Stirling numbers of the second kind. However, mathematicians also study $r$-Stirling numbers of the second kind. These count partitions where the first $r$ elements must all belong to different subsets. There are also associated Stirling numbers of the second kind. These require that every subset contains at least $r$ elements. These variations allow mathematicians to solve much more specific grouping problems.

History shows how notation and methods have evolved. The numbers are named after the mathematician James Stirling. In 1962, Imanuel Marx and Antonio Salmeri introduced a brace notation for these values. This notation was later adopted by Donald Knuth in his 1968 book, *The Art of Computer Programming*. Knuth's use of this notation was influenced by earlier work by Jovan Karamata in 1935. These developments helped standardize how scientists communicate complex grouping ideas.

These numbers have significant connections to other mathematical concepts. If you sum all Stirling numbers of the second kind for a fixed $n$, you get the $n$th Bell number. The Bell number represents the total number of ways to partition a set of $n$ members into any number of groups. For instance, if $n=4$, the Stirling numbers for $k=1, 2, 3, 4$ are 1, 7, 6, and 1. Adding these together gives 15, which is the fourth Bell number.

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg

Surprising applications exist in linguistics and probability. In poetry, Stirling numbers can represent the total number of rhyme schemes for a poem with $n$ lines. If you use $k$ unique rhyming syllables, the Stirling number tells you how many schemes are possible. For a 3-line poem, there is 1 scheme using one rhyme (aaa) and 3 schemes using two rhymes (aab, aba, abb). In probability, these numbers help describe the moments of a Poisson distribution. They also appear when studying the fixed points of random permutations.

Finally, Stirling numbers relate to broader mathematical structures like matrices and series. They can be viewed as the inverse of Stirling numbers of the first kind when arranged in triangular matrices. They also appear in the study of Bernoulli polynomials and exponential generating functions. Even the parity, or whether the number is even or odd, follows a predictable pattern. This pattern can be mapped onto the Sierpiński triangle, a famous fractal shape.

Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg

635 words
🖼️ Images & Media (2)
File:Set partitions 4; Hasse; circles.svg
Set partitions 4; Hasse; circles.svg
File:Stirling numbers of the second kind - Parity.svg
Stirling numbers of the second kind - Parity.svg
Up Next
🔢
Stirling number
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.