Calculator Scope

Calculator Scope - Smart Online Calculators for Everything

From math, science, finance, health, and construction to marketing, text tools, developer utilities, and more. All calculators in one fast, accurate, easy-to-use platform.

Stirling Numbers of the Second Kind Calculator

Stirling Numbers of the Second Kind Calculator

Result
Calculator Scope
Advertisement 1
Advertisement 2
This calculator finds the number of ways to partition n items into exactly k non-empty groups, e.g. 4 items into 2 groups gives S(4,2) = 7.

A Stirling number of the second kind counts the number of ways to split a set of items into a fixed number of non-empty, unlabeled groups — a calculation that comes up in combinatorics whenever the groups themselves aren't distinguished from one another. Enter the total number of items and how many groups to split them into, and this calculator computes the count using the standard recursive formula. Summing these numbers across every possible group count gives the Bell number, the total number of ways to partition a set in any way at all.

Advertisement 3
  • A Stirling number of the second kind S(n,k) counts the ways to partition a set of n items into exactly k non-empty, unlabeled subsets, where the order of the subsets themselves doesn't matter.
  • This is computed recursively: S(n,k) = k×S(n−1,k) + S(n−1,k−1), building up from the base case S(0,0) = 1.
  • Summing S(n,k) over every possible k gives the Bell number, the total number of ways to partition a set of n items into any number of non-empty groups.

What does a Stirling number of the second kind represent?

It counts how many distinct ways a set of n items can be split into exactly k non-empty groups, where the groups themselves aren't ordered or labeled.

How many ways can 4 items be split into 2 non-empty groups?

S(4,2) = 7 distinct ways.