Stirling Numbers Calculator
Enter n and k to get the Stirling numbers of the first and second kind.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Stirling numbers come in two families that both decompose n objects around the integer k, but they count different things. Stirling numbers of the first kind, s(n,k), count permutations of n elements that break into exactly k disjoint cycles; Stirling numbers of the second kind, S(n,k), count the ways to partition a set of n elements into exactly k non-empty, unordered subsets. Both satisfy simple recurrence relations — S(n,k) = k·S(n−1,k) + S(n−1,k−1), for instance — which is how this calculator builds them up from smaller cases.
Combinatorics and discrete math students use these numbers to solve counting problems on permutation cycle structure and set partitioning, while computer scientists apply Stirling numbers of the second kind in analyzing algorithms that group or bucket data, and in formulas that convert between falling factorials and ordinary powers.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)