ArticleslgStudy

mathematics

Stirling numbers of the second kind

Stirling numbers of the second kind is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Stirling numbers of the second kind rather than just read about it. In short: 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 ) {\displaystyle S(n,k)} or { n k } {\displaystyle \textstyle \left\{{n \atop k}\right\}} . Stirling numbers of the second kind occur in combinatorics and the study of partitions.

Stirling numbers of the second kind — main illustration
Stirling numbers of the second kind — illustration

Key takeaways

  • Stirling numbers of the second kind belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Stirling numbers of the second kind to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Stirling numbers of the second kind from memory before moving on to harder problems.

Reference excerpt

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 ) {\displaystyle S(n,k)} or { n k } {\displaystyle \textstyle \left\{{n \atop k}\right\}} . Stirling numbers of the second kind occur in combinatorics and the study of partitions. They are named after James Stirling. The Stirling numbers of the first 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 S ( n , k ) {\displaystyle S(n,k)} or { n k } {\displaystyle \lbrace \textstyle {n \atop k}\rbrace } or with other notations, count the number of ways to partition a set of n {\displaystyle n} labelled objects into k {\displaystyle k} nonempty unlabelled subsets. Equivalently, they count the number of different equivalence relations with precisely k {\displaystyle k} equivalence classes that can be defined on an n {\displaystyle n} element set. In fact, there is a bijection between the set of partitions and the set of equivalence relations on a given set. Obviously,

{ n 0 } = 0 {\displaystyle \left\{{n \atop 0}\right\}=0} for n ≥ 1, { n n } = 1 {\displaystyle \left\{{n \atop n}\right\}=1} for n ≥ 0, and { n 1 } = 1 {\displaystyle \left\{{n \atop 1}\right\}=1} for n ≥ 1, as there is no empty partition of a nonempty set, 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, they can be calculated using a one-sum formula:

{ n k } = 1 k ! ∑ i = 0 k ( − 1 ) k − i ( k i ) i n = ∑ i = 0 k ( − 1 ) k − i i n ( k − i ) ! i ! . {\displaystyle \left\{{n \atop k}\right\}={\frac {1}{k!}}\sum _{i=0}^{k}(-1)^{k-i}{\binom {k}{i}}i^{n}=\sum _{i=0}^{k}{\frac {(-1)^{k-i}i^{n}}{(k-i)!i!}}.}

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 factorials

( x ) n = x ( x − 1 ) ( x − 2 ) ⋯ ( x − n + 1 ) . {\displaystyle (x)_{n}=x(x-1)(x-2)\cdots (x-n+1).}

Notation Various notations have been used for Stirling numbers of the second kind. The brace notation { n k } {\textstyle \textstyle \lbrace {n \atop k}\rbrace } 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 (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 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 { n k } {\displaystyle \left\{{n \atop k}\right\}} counts set partitions of an n-element set into k parts, the sum

… excerpt ends here. Continue reading the full article.

Illustrations

Stirling numbers of the second kind: The 15 partitions of a 4-element set ordered in a Hasse diagram There are S(4,1), ..., S(4, 4) = 1, 7, 6, 1 partitions containing 1, 2, 3, 4 sets.
The 15 partitions of a 4-element set ordered in a Hasse diagram There are S(4,1), ..., S(4, 4) = 1, 7, 6, 1 partitions containing 1, 2, 3, 4 sets.
Stirling numbers of the second kind: Parity of Stirling numbers of the second kind.
Parity of Stirling numbers of the second kind.

Worked examples

Example 1 — a first encounter with Stirling numbers of the second kind

Start with the simplest possible case. Write down what Stirling numbers of the second kind claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Stirling numbers of the second kind before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Stirling numbers of the second kind ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Stirling numbers of the second kind

In research
Stirling numbers of the second kind appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Stirling numbers of the second kind in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Stirling numbers of the second kind is common in secondary-school and first-year university syllabi. It links to neighbouring topics Factorial and binomial topics, Operations on numbers, Permutations, so understanding it makes those chapters shorter.
In everyday life
Look for Stirling numbers of the second kind outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Stirling numbers of the second kind” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Stirling numbers of the second kind in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Stirling numbers of the second kind means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Stirling numbers of the second kind out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Stirling numbers of the second kind in simple terms?

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 ) {\displaystyle S(n,k)} or { n k } {\displaystyle \textstyle \left\{{n \atop…

Why does Stirling numbers of the second kind matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Stirling numbers of the second kind?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Stirling numbers of the second kind.

Tags

  • Factorial and binomial topics
  • Operations on numbers
  • Permutations
  • Triangles of numbers

Keep exploring