Counting, Permutations & Combinations

Bell Number Calculator

Count all partitions of n labeled objects into any number of non-empty unlabeled groups.

Counting & Combinatorics

Count every partition of a labeled set

Exact Bell number

Exact count

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Enter the number of labeled objects.
  2. All possible non-empty group counts are included.
  3. Read the exact Bell number B(n).

Calculation method

Sum the set partitions over every group count

B(n) is the sum of S(n,k) from k=0 through n.

Worked example

Group four labeled objects

Across one, two, three, or four groups, there are fifteen set partitions.

B(4) = 15

Supported inputs

Precision and limits

Discrete domain

Inputs are whole counts. Negative, fractional, grouped, and scientific-notation inputs are rejected.

Exact integers

Results use arbitrary-precision integers and are never rounded. Inputs and output size are bounded to keep the page responsive.

Maximum n

n is limited to 300 for responsive exact evaluation.