Bell Number — Definition, Formula & Examples
A Bell number counts the total number of ways to partition a set of elements into non-empty, non-overlapping subsets. For example, the Bell number means there are exactly 5 ways to partition a 3-element set.
The -th Bell number is defined as the sum of Stirling numbers of the second kind over all possible block counts: , where counts the number of partitions of an -element set into exactly non-empty subsets. By convention, .
Key Formula
Where:
- = The $n$-th Bell number, counting all partitions of an $n$-element set
- = Stirling number of the second kind — the number of partitions of $n$ elements into exactly $k$ non-empty subsets
How It Works
You can compute Bell numbers using the Bell triangle (analogous to Pascal's triangle). Start by placing at the top. Each subsequent row begins with the last element of the previous row, and each following entry is the sum of the entry to its left and the entry directly above that left entry. The first element of each row gives the next Bell number. The sequence begins
Worked Example
Problem: Find , the number of ways to partition the set into non-empty subsets.
Step 1: Compute each Stirling number for to .
Step 2: Sum all Stirling numbers to get the Bell number.
Step 3: Verify by listing partition types: 1 way with one block (), 7 ways with two blocks, 6 ways with three blocks, and 1 way with four singletons.
Answer: . There are 15 distinct partitions of a 4-element set.
Visualization
Why It Matters
Bell numbers appear in database theory when counting the number of ways to group query results, in clustering algorithms that evaluate all possible groupings, and in coding theory. They are a standard topic in discrete mathematics and combinatorics courses at the undergraduate level.
Common Mistakes
Mistake: Confusing Bell numbers with Stirling numbers of the second kind.
Correction: counts partitions into exactly blocks, while sums over all possible values of . The Bell number is the total count across all block sizes.
