Maths & numbers

Stirling set partition count calculator

Count ways to split labeled items into exactly k unlabeled nonempty groups.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The recurrence either inserts the last item into one of k existing groups or makes it a singleton group.

THE FORMULAS(n,k) = k S(n−1,k) + S(n−1,k−1)

A worked example

Five distinct items can be split into three nonempty groups in 25 ways.

Good to know

Groups have no order.

Read the result

Count ways to split labeled items into exactly k unlabeled nonempty groups.

The primary result is labeled “Partitions”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Groups have no order.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

Five distinct items can be split into three nonempty groups in 25 ways.

Which rule does this calculator apply?

S(n,k) = k S(n−1,k) + S(n−1,k−1)

Find your calculator

Start typing to explore the library.