Skip to main content
Вернуться к руководствам
3 min read5 Шаги

How to Calculate Stirling Numbers: Step-by-Step Guide

Calculate Stirling numbers manually

Оставьте математику — воспользуйтесь калькулятором

Пошаговые инструкции

1

Choose the Type of Stirling Number

First, determine whether you need to calculate a Stirling number of the first kind (s(n, k)) or the second kind (S(n, k)).

2

Plug in the Values of n and k

Next, plug in the values of n and k into the formula for the chosen type of Stirling number.

3

Calculate the Binomial Coefficients

Calculate the binomial coefficients (k choose i) for each term in the summation.

4

Evaluate the Summation

Evaluate the summation by calculating each term and adding them up.

5

Simplify the Result

Finally, simplify the result by dividing by k! (for Stirling numbers of the second kind) or by multiplying by the appropriate factors (for Stirling numbers of the first kind).

Introduction to Stirling Numbers

Stirling numbers are used in combinatorial mathematics to count the number of ways to partition a set of n objects into k non-empty subsets. There are two types of Stirling numbers: Stirling numbers of the first kind and Stirling numbers of the second kind.

Stirling Numbers of the First Kind

Stirling numbers of the first kind, denoted by s(n, k), count the number of ways to arrange n objects into k cycles. The formula for Stirling numbers of the first kind is:

s(n, k) = (1/k!) * ∑(i=0 to k) (-1)^(k-i) * (k choose i) * i^n

Stirling Numbers of the Second Kind

Stirling numbers of the second kind, denoted by S(n, k), count the number of ways to partition a set of n objects into k non-empty subsets. The formula for Stirling numbers of the second kind is:

S(n, k) = (1/k!) * ∑(i=0 to k) (-1)^(k-i) * (k choose i) * i^n

Worked Example

Let's calculate S(5, 3) using the formula:

S(5, 3) = (1/3!) * ∑(i=0 to 3) (-1)^(3-i) * (3 choose i) * i^5 = (1/6) * ((-1)^3 * (3 choose 0) * 0^5 + (-1)^2 * (3 choose 1) * 1^5 + (-1)^1 * (3 choose 2) * 2^5 + (-1)^0 * (3 choose 3) * 3^5) = (1/6) * (0 + 3 * 1 + (-3) * 32 + 1 * 243) = (1/6) * (0 + 3 + (-96) + 243) = (1/6) * 150 = 25

Common Mistakes to Avoid

When calculating Stirling numbers, make sure to:

  • Use the correct formula for the type of Stirling number you are calculating
  • Calculate the binomial coefficients correctly
  • Evaluate the summation correctly

Using the Calculator for Convenience

While it's possible to calculate Stirling numbers by hand, it can be time-consuming and prone to errors. For large values of n and k, it's recommended to use a calculator or computer program to calculate Stirling numbers.

Готовы рассчитать?

Откажитесь от ручной работы и получите мгновенные результаты.

Открыть калькулятор

Сопутствующий смарт-контент

Настройки