MyVIPWebTools logo

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.

Enter n and k, then click Calculate.

How to Use the Stirling Numbers Calculator — First & Second Kind Online

  1. 1

    Choose the first kind or second kind of Stirling number.

  2. 2

    Enter n and k (both non-negative whole numbers, k ≤ n).

  3. 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

Stirling Numbers Calculator — First & Second Kind Online | MyVIPWebTools