Stirling Numbers Calculator — Compute S(n,k) and c(n,k)
Our Stirling Numbers Calculator computes both kinds of Stirling numbers: the second kind S(n, k), counting ways to partition n objects into k non-empty subsets, and the first kind c(n, k) (unsigned) or s(n, k) (signed), counting permutations of n elements arranged into k cycles — both built up via their standard recurrences with exact BigInt precision.
Quick Answer
Choose the first or second kind, enter n and k, and this calculator computes the exact Stirling number via its standard recurrence, with BigInt precision.
How to Use the Stirling Numbers Calculator — First & Second Kind Online
- 1
Choose the first kind or second kind of Stirling number.
- 2
Enter n and k (both non-negative whole numbers, k ≤ n).
- 3
Click 'Calculate' to see the exact value, computed via the standard recurrence.
Why Use Stirling Numbers Calculator — First & Second Kind Online?
Stirling numbers, named after James Stirling, come in two families that both decompose a combinatorial count by recursively considering the last element: the second kind S(n, k) counts ways to partition n labeled objects into k non-empty unlabeled groups, while the first kind counts permutations of n elements by their number of cycles. Both satisfy a clean recurrence relating S(n, k) (or c(n, k)) to smaller cases, which this calculator applies directly with a dynamic-programming table and exact BigInt arithmetic, since both families grow extremely quickly.
Frequently Asked Questions
Related Tools
Binomial Coefficient Calculator — Calculate C(n,k) Online
Calculate binomial coefficients C(n, k) instantly with step-by-step solutions, a Pascal's Triangle row visualization, and the matching term from the binomial expansion of (a + b)ⁿ.
Permutation Calculator — Calculate P(n,r) Online
Calculate permutations P(n,r) — the number of ways to arrange r items from n total items where order matters. Free calculator with step-by-step solutions and formula breakdowns.
Derangement (Subfactorial) Calculator — !n Online
Calculate the subfactorial !n — the number of derangements of n objects, where no object stays in its original position. Free calculator with exact BigInt precision.