In
combinatorial mathematics, the Bell numbers count the possible
partitions of a set
In mathematics, a partition of a set is a grouping of its elements into non-empty subsets, in such a way that every element is included in exactly one subset.
Every equivalence relation on a set defines a partition of this set, and every part ...
. These numbers have been studied by mathematicians since the 19th century, and their roots go back to medieval Japan. In an example of
Stigler's law of eponymy, they are named after
Eric Temple Bell, who wrote about them in the 1930s.
The Bell numbers are denoted
, where
is an
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
greater than or equal to
zero
0 (zero) is a number representing an empty quantity. Adding (or subtracting) 0 to any number leaves that number unchanged; in mathematical terminology, 0 is the additive identity of the integers, rational numbers, real numbers, and compl ...
. Starting with
, the first few Bell numbers are
:
.
The Bell number
counts the different ways to partition a set that has exactly
elements, or equivalently, the
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric, and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation. A simpler example is equ ...
s on it.
also counts the different
rhyme scheme
A rhyme scheme is the pattern of rhymes at the end of each line of a poem or song. It is usually referred to by using letters to indicate which lines rhyme; lines designated with the same letter all rhyme with each other.
An example of the ABAB rh ...
s for
-line poems.
As well as appearing in counting problems, these numbers have a different interpretation, as
moments of
probability distribution
In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
s. In particular,
is the
-th moment of a
Poisson distribution
In probability theory and statistics, the Poisson distribution () is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time if these events occur with a known const ...
with
mean
A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
1.
Counting
Set partitions

In general,
is the number of partitions of a set of size
. A partition of a set
is defined as a family of nonempty, pairwise disjoint subsets of
whose union is
. For example,
because the 3-element set
can be partitioned in 5 distinct ways:
:
:
:
:
:
As suggested by the set notation above, the ordering of subsets within the family is not considered;
ordered partitions are counted by a different sequence of numbers, the
ordered Bell numbers.
is 1 because there is exactly one partition of the
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
. This partition is itself the empty set; it can be interpreted as a family of subsets of the empty set, consisting of zero subsets. It is
vacuously true that all of the subsets in this family are non-empty subsets of the empty set and that they are pairwise disjoint subsets of the empty set, because there are no subsets to have these unlikely properties.
The partitions of a set
correspond one-to-one with its
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric, and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation. A simpler example is equ ...
s. These are
binary relation
In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
s that are
reflexive,
symmetric
Symmetry () in everyday life refers to a sense of harmonious and beautiful proportion and balance. In mathematics, the term has a more precise definition and is usually used to refer to an object that is invariant under some transformations ...
, and
transitive. The equivalence relation corresponding to a partition defines two elements as being equivalent when they belong to the same partition subset as each other. Conversely, every equivalence relation corresponds to a partition into
equivalence class
In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements ...
es. Therefore, the Bell numbers also count the equivalence relations.
Factorizations
If a number
is a
squarefree positive
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
, meaning that it is the product of some number
of distinct
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s, then
gives the number of different
multiplicative partition In number theory, a multiplicative partition or unordered factorization of an integer n is a way of writing n as a product of integers greater than 1, treating two products as equivalent if they differ only in the ordering of the factors. The number ...
s of
. These are
factorization
In mathematics, factorization (or factorisation, see American and British English spelling differences#-ise, -ize (-isation, -ization), English spelling differences) or factoring consists of writing a number or another mathematical object as a p ...
s of
into numbers greater than one, treating two factorizations as the same if they have the same factors in a different order. For instance, 30 is the product of the three primes 2, 3, and 5, and has
= 5 factorizations:
:
Rhyme schemes
The Bell numbers also count the
rhyme scheme
A rhyme scheme is the pattern of rhymes at the end of each line of a poem or song. It is usually referred to by using letters to indicate which lines rhyme; lines designated with the same letter all rhyme with each other.
An example of the ABAB rh ...
s of an ''n''-line
poem
Poetry (from the Greek language, Greek word ''poiesis'', "making") is a form of literature, literary art that uses aesthetics, aesthetic and often rhythmic qualities of language to evoke meaning (linguistics), meanings in addition to, or in ...
or
stanza
In poetry, a stanza (; from Italian ''stanza'', ; ) is a group of lines within a poem, usually set off from others by a blank line or indentation. Stanzas can have regular rhyme and metrical schemes, but they are not required to have either. ...
. A rhyme scheme describes which lines rhyme with each other, and so may be interpreted as a partition of the set of lines into rhyming subsets. Rhyme schemes are usually written as a sequence of Roman letters, one per line, with rhyming lines given the same letter as each other, and with the first lines in each rhyming set labeled in alphabetical order. Thus, the 15 possible four-line rhyme schemes are AAAA, AAAB, AABA, AABB, AABC, ABAA, ABAB, ABAC, ABBA, ABBB, ABBC, ABCA, ABCB, ABCC, and ABCD.
Permutations
The Bell numbers come up in a card
shuffling
Shuffling is a technique used to randomize a deck of playing cards, introducing an element of chance into card games. Various shuffling methods exist, each with its own characteristics and potential for manipulation.
One of the simplest shuf ...
problem mentioned in the addendum to . If a deck of ''n'' cards is shuffled by repeatedly removing the top card and reinserting it anywhere in the deck (including its original position at the top of the deck), with exactly ''n'' repetitions of this operation, then there are ''n''
''n'' different shuffles that can be performed. Of these, the number that return the deck to its original sorted order is exactly ''B
n''. Thus, the probability that the deck is in its original order after shuffling it in this way is ''B
n''/''n''
''n'', which is significantly larger than the 1/''n''! probability that would describe a uniformly random permutation of the deck.
Related to card shuffling are several other problems of counting special kinds of
permutation
In mathematics, a permutation of a set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example of the first mean ...
s that are also answered by the Bell numbers. For instance, the ''n''th Bell number equals the number of permutations on ''n'' items in which no three values that are in sorted order have the last two of these three consecutive. In a notation for generalized
permutation patterns where values that must be consecutive are written adjacent to each other, and values that can appear non-consecutively are separated by a dash, these permutations can be described as the permutations that avoid the pattern 1-23. The permutations that avoid the generalized patterns 12-3, 32-1, 3-21, 1-32, 3-12, 21-3, and 23-1 are also counted by the Bell numbers. The permutations in which every 321 pattern (without restriction on consecutive values) can be extended to a 3241 pattern are also counted by the Bell numbers. However, the Bell numbers grow too quickly to count the permutations that avoid a pattern that has not been generalized in this way: by the (now proven)
Stanley–Wilf conjecture, the number of such permutations is singly exponential, and the Bell numbers have a higher asymptotic growth rate than that.
Triangle scheme for calculations
The Bell numbers can easily be calculated by creating the so-called
Bell triangle, also called Aitken's array or the Peirce triangle after
Alexander Aitken
Alexander Craig "Alec" Aitken (1 April 1895 – 3 November 1967) was one of New Zealand's most eminent mathematicians. In a 1935 paper he introduced the concept of generalized least squares, along with now standard vector/matrix notation ...
and
Charles Sanders Peirce
Charles Sanders Peirce ( ; September 10, 1839 – April 19, 1914) was an American scientist, mathematician, logician, and philosopher who is sometimes known as "the father of pragmatism". According to philosopher Paul Weiss (philosopher), Paul ...
.
# 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 (
where ''r'' is the last element of (''i''-1)-th row)
# 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, that is, 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 (do step 3 until
)
# The number on the left hand side of a given row is the ''Bell number'' for that row. (
)
Here are the first five rows of the triangle constructed by these rules:
The Bell numbers appear on both the left and right sides of the triangle.
Properties
Summation formulas
The Bell numbers satisfy a
recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
involving
binomial coefficient
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
s:
:
It can be explained by observing that, from an arbitrary partition of ''n'' + 1 items, removing the set containing the first item leaves a partition of a smaller set of ''k'' items for some number ''k'' that may range from 0 to ''n''. There are
choices for the ''k'' items that remain after one set is removed, and ''B
k'' choices of how to partition them.
A different summation formula represents each Bell number as a sum of
Stirling numbers of the second kind
:
The Stirling number
is the number of ways to partition a set of cardinality ''n'' into exactly ''k'' nonempty subsets. Thus, in the equation relating the Bell numbers to the Stirling numbers, each partition counted on the left hand side of the equation is counted in exactly one of the terms of the sum on the right hand side, the one for which ''k'' is the number of sets in the partition.
Therefore, using the latter formula one can compute Bell numbers non-recursively:
:
Using one of the explicit formula for the
Stirling numbers of the second kind.
has given a formula that combines both of these summations:
:
Applying
Pascal's inversion formula to the recurrence relation, we obtain
which can be generalized in this manner:
Other finite sum formulas using
Stirling numbers of the first kind include
which simplifies down with
to
and with
,
to
which can be seen as the
inversion formula for Stirling numbers applied to Spivey’s formula.
Generating function
The
exponential generating function of the Bell numbers is
:
In this formula, the summation in the middle is the general form used to define the exponential generating function for any sequence of numbers, and the formula on the right is the result of performing the summation in the specific case of the Bell numbers.
One way to derive this result uses
analytic combinatorics, a style of mathematical reasoning in which sets of mathematical objects are described by formulas explaining their construction from simpler objects, and then those formulas are manipulated to derive the combinatorial properties of the objects. In the language of analytic combinatorics, a set partition may be described as a set of nonempty
urns
An urn is a vase, often with a cover, with a typically narrowed neck above a rounded body and a footed pedestal. Describing a vessel as an "urn", as opposed to a vase or other terms, generally reflects its use rather than any particular shape ...
into which elements labelled from 1 to ''n'' have been distributed, and the
combinatorial class of all partitions (for all ''n'') may be expressed by the notation
:
Here,
is a combinatorial class with only a single member of size one, an element that can be placed into an urn. The inner
operator describes a set or urn that contains one or more labelled elements, and the outer
describes the overall partition as a set of these urns. The exponential generating function may then be read off from this notation by translating the
operator into the exponential function and the nonemptiness constraint ≥1 into subtraction by one.
An alternative method for deriving the same generating function uses the recurrence relation for the Bell numbers in terms of binomial coefficients to show that the exponential generating function satisfies the
differential equation . The function itself can be found by solving this equation.
Moments of probability distributions
The Bell numbers satisfy
Dobinski's formula
:
This formula can be derived by expanding the exponential generating function using the
Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
for the exponential function, and then collecting terms with the same exponent.
It allows ''B
n'' to be interpreted as the ''n''th
moment of a
Poisson distribution
In probability theory and statistics, the Poisson distribution () is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time if these events occur with a known const ...
with
expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
1.
The ''n''th Bell number is also the sum of the coefficients in the ''n''th
complete Bell polynomial, which expresses the ''n''th
moment of any
probability distribution
In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
as a function of the first ''n''
cumulant
In probability theory and statistics, the cumulants of a probability distribution are a set of quantities that provide an alternative to the '' moments'' of the distribution. Any two probability distributions whose moments are identical will have ...
s.
Modular arithmetic
The Bell numbers obey
Touchard's congruence: If ''p'' is any
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
then
:
or, generalizing
:
Because of Touchard's congruence, the Bell numbers are periodic modulo ''p'', for every prime number ''p''; for instance, for ''p'' = 2, the Bell numbers repeat the pattern odd-odd-even with period three. The period of this repetition, for an arbitrary prime number ''p'', must be a divisor of
:
and for all prime
and
, or
it is exactly this number .
The period of the Bell numbers to modulo ''n'' are
:1, 3, 13, 12, 781, 39, 137257, 24, 39, 2343, 28531167061, 156, ...
Integral representation
An application of
Cauchy's integral formula
In mathematics, Cauchy's integral formula, named after Augustin-Louis Cauchy, is a central statement in complex analysis. It expresses the fact that a holomorphic function defined on a disk is completely determined by its values on the boundary o ...
to the exponential generating function yields the complex integral representation
:
Some asymptotic representations can then be derived by a standard application of the
method of steepest descent.
Log-concavity
The Bell numbers form a
logarithmically convex sequence. Dividing them by the factorials, ''B''
''n''/''n''!, gives a logarithmically concave sequence.
Growth rate
Several
asymptotic
In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates Limit of a function#Limits at infinity, tends to infinity. In pro ...
formulas for the Bell numbers are known. In the following bounds were established:
:
for all positive integers
;
moreover, if
then for all
,
:
where
and
The Bell numbers can also be approximated using the
Lambert W function
In mathematics, the Lambert function, also called the omega function or product logarithm, is a multivalued function, namely the Branch point, branches of the converse relation of the function , where is any complex number and is the expone ...
, a function with the same growth rate as the logarithm, as
:
established the expansion
:
uniformly for
as
, where
and each
and
are known expressions in
.
The asymptotic expression
:
was established by .
Bell primes
raised the question of whether infinitely many Bell numbers are also
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s. These are called Bell primes. The first few Bell primes are:
:2, 5, 877, 27644437, 35742549198872617291353508656626642567, 359334085968622831041960188598043661065388726959079837
corresponding to the indices 2, 3, 7, 13, 42 and 55 . The next Bell prime is ''B''
2841, which is approximately 9.30740105 × 10
6538.
History

The Bell numbers are named after
Eric Temple Bell, who wrote about them in 1938, following up a 1934 paper in which he studied the
Bell polynomials. Bell did not claim to have discovered these numbers; in his 1938 paper, he wrote that the Bell numbers "have been frequently investigated" and "have been rediscovered many times". Bell cites several earlier publications on these numbers, beginning with which gives
Dobiński's formula for the Bell numbers. Bell called these numbers "exponential numbers"; the name "Bell numbers" and the notation ''B
n'' for these numbers was given to them by .
The first exhaustive enumeration of set partitions appears to have occurred in medieval Japan, where (inspired by the popularity of the book ''
The Tale of Genji
is a classic work of Japanese literature written by the noblewoman, poet, and lady-in-waiting Murasaki Shikibu around the peak of the Heian period, in the early 11th century. It is one of history's first novels, the first by a woman to have wo ...
'') a parlor game called ''
genjikō'' sprang up, in which guests were given five packets of incense to smell and were asked to guess which ones were the same as each other and which were different. The 52 possible solutions, counted by the Bell number ''B''
5, were recorded by 52 different diagrams, which were printed above the chapter headings in some editions of ''The Tale of Genji.''
[ and also mention the connection between Bell numbers and ''The Tale of Genji,'' in less detail.]
In
Srinivasa Ramanujan
Srinivasa Ramanujan Aiyangar
(22 December 188726 April 1920) was an Indian mathematician. Often regarded as one of the greatest mathematicians of all time, though he had almost no formal training in pure mathematics, he made substantial con ...
's second notebook, he investigated both Bell polynomials and Bell numbers.
Early references for the
Bell triangle, which has the Bell numbers on both of its sides, include and .
See also
*
Touchard polynomials
The Touchard polynomials, studied by , also called the exponential polynomials or Bell polynomials, comprise a polynomial sequence of binomial type defined by
:T_n(x)=\sum_^n S(n,k)x^k=\sum_^n
\left\x^k,
where S(n,k)=\left\ is a Stirling ...
*
Catalan number
The Catalan numbers are a sequence of natural numbers that occur in various Enumeration, counting problems, often involving recursion, recursively defined objects. They are named after Eugène Charles Catalan, Eugène Catalan, though they were p ...
*
Stirling number
In mathematics, Stirling numbers arise in a variety of Analysis (mathematics), analytic and combinatorics, combinatorial problems. They are named after James Stirling (mathematician), James Stirling, who introduced them in a purely algebraic setti ...
*
Stirling numbers of the first kind
Notes
References
*
*
*.
*.
*.
*
*
*
*
*
*
*
*
*
*
*
* Reprinted with an addendum as "The Tinkly Temple Bells", Chapter 2 of ''Fractal Music, Hypercards, and more ... Mathematical Recreations from Scientific American'', W. H. Freeman, 1992, pp. 24–38
*
*
*
*
*
*.
*
*
*
*
*
External links
*
*
*
{{DEFAULTSORT:Bell Number
Integer sequences