Bell number
Encyclopedia : B : BE : BEL : Bell number
In combinatorial mathematics, the nth Bell number, named in honor of Eric Temple Bell, is the number of partitions of a set with n members, or equivalently, the number of equivalence relations on it. Starting with B0 = B1 = 1, the first few Bell numbers are (sequence in OEIS):
(See also breakdown by number of subsets/equivalence classes.)
Partitions of a set
In general, Bn is the number of partitions of a set of size n. A partition of a set S is defined as a set of nonempty, pairwise disjoint subsets of S whose union is S. For example, B3 = 5 because the 3-element set can be partitioned in 5 distinct ways:
Another view of Bell numbers
Bell numbers can also be viewed as the number of distinct possible ways of putting n distinguishable balls into one or more indistinguishable boxes. For example, let us suppose n is 3. We have three balls, which we will label a, b, and c, and three boxes. If the boxes can not be distinguished from each other, there are five ways of putting the balls in the boxes:
- Each ball goes in to its own box.
- All three balls go in to one box. Since the boxes are anonymous, this is only considered one combination.
- a goes in to one box; b and c go in to another box.
- b goes in to one box; a and c go in to another box.
- c goes in to one box; a and b go in to another box.
Properties of Bell numbers
The Bell numbers satisfy this recursion formula:
- [B_=\sum_^ e^ ]
- [\lambda \left( n \right)\ln \lambda \left( n \right) = n]
Triangle scheme for calculating Bell numbers
The Bell numbers can easily be calculated by creating the so-called Bell triangle, also called Aitken's array or the Peirce triangle:
- Start with the number one. Put this on a row by itself.
- Start a new row with the rightmost element from the previous row as the leftmost number
- Determine the numbers not on the left column by taking the sum of the number to the left and the number above the number to the left (the number diagonally up and left of the number we are calculating)
- Repeat step three until there is a new row with one more number than the previous row
- The number on the left hand side of a given row is the Bell number for that row.
1 1 x
The value x here is determined by adding the number to the left of x (one) and the number above the number to the left of x (also one).
1 1 2 y
The value y is determined by copying over the number from the right of the previous row. Since the number on the right hand side of the previous row has a value of 2, y is given a value of two.
1 1 2 2 3 x
Again, since x is not the leftmost element of a given row, its value is determined by taking the sum of the number to x
Here is the first five rows of this triangle:
1 1 2 2 3 5 5 7 10 1515 20 27 37 52
The fifth row is calculated thusly:
- Take 15 from the previous row
- 15 + 5 = 20
- 20 + 7 = 27
- 27 + 10 = 37
- 37 + 15 = 52
Using this way of calculating the following JavaScript shows the first 219 Bell numbers:
function write_bell ( hBound ) } write_bell ( 218 )
References
- Gian-Carlo Rota, "The Number of Partitions of a Set", American Mathematical Monthly, volume 71, number 5, pages 498—504, May 1964.
See also
External links
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
