Recent from talks
Nothing was collected or created yet.
Bell number
View on WikipediaIn combinatorial mathematics, the Bell numbers count the possible partitions of a set. 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 greater than or equal to zero. 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 relations on it. also counts the different rhyme schemes for -line poems.[1]
As well as appearing in counting problems, these numbers have a different interpretation, as moments of probability distributions. In particular, is the -th moment of a Poisson distribution with mean 1.
Counting
[edit]Set partitions
[edit]
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. 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 relations. These are binary relations that are reflexive, symmetric, 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 classes.[2] Therefore, the Bell numbers also count the equivalence relations.
Factorizations
[edit]If a number is a squarefree positive integer, meaning that it is the product of some number of distinct prime numbers, then gives the number of different multiplicative partitions of . These are factorizations of into numbers greater than one, treating two factorizations as the same if they have the same factors in a different order.[3] For instance, 30 is the product of the three primes 2, 3, and 5, and has = 5 factorizations:
Rhyme schemes
[edit]The Bell numbers also count the rhyme schemes of an n-line poem or stanza. 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.[1]
Permutations
[edit]The Bell numbers come up in a card shuffling problem mentioned in the addendum to Gardner 1978. 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 nn different shuffles that can be performed. Of these, the number that return the deck to its original sorted order is exactly Bn. Thus, the probability that the deck is in its original order after shuffling it in this way is Bn/nn, 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 permutations that are also answered by the Bell numbers. For instance, the nth 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.[4] 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.[5] 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
[edit]
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 and Charles Sanders Peirce.[6]
- 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
[edit]Summation formulas
[edit]The Bell numbers satisfy a recurrence relation involving binomial coefficients:[7]
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 Bk 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.[8]
Therefore, using the latter formula one can compute Bell numbers non-recursively as
using one of the explicit formula for the Stirling numbers of the second kind.[9]
Spivey 2008 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:[10]
Other finite sum formulas using Stirling numbers of the first kind include[10]
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
[edit]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 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.[11]
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.[12][13][14]
Moments of probability distributions
[edit]The Bell numbers satisfy Dobinski's formula[15][12][14]
This formula can be derived by expanding the exponential generating function using the Taylor series for the exponential function, and then collecting terms with the same exponent.[11] It allows Bn to be interpreted as the nth moment of a Poisson distribution with expected value 1.
The nth Bell number is also the sum of the coefficients in the nth complete Bell polynomial, which expresses the nth moment of any probability distribution as a function of the first n cumulants.
Modular arithmetic
[edit]The Bell numbers obey Touchard's congruence: If p is any prime number then[16]
or, generalizing[17]
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 (sequence A001039 in the OEIS).[18][19]
The period of the Bell numbers to modulo n are
Integral representation
[edit]An application of Cauchy's integral formula 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.[20]
Log-concavity
[edit]The Bell numbers form a logarithmically convex sequence. Dividing them by the factorials, Bn/n!, gives a logarithmically concave sequence.[21][22][23]
Growth rate
[edit]Several asymptotic formulas for the Bell numbers are known. In Berend & Tassa 2010 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, a function with the same growth rate as the logarithm, as[24]
Moser & Wyman 1955 established the expansion
uniformly for as , where and each and are known expressions in .[25]
The asymptotic expression
was established by de Bruijn 1981.
Bell primes
[edit]Gardner 1978 raised the question of whether infinitely many Bell numbers are also prime numbers. These are called Bell primes. The first few Bell primes are:
- 2, 5, 877, 27644437, 35742549198872617291353508656626642567, 359334085968622831041960188598043661065388726959079837 (sequence A051131 in the OEIS)
corresponding to the indices 2, 3, 7, 13, 42 and 55 (sequence A051130 in the OEIS). The next Bell prime is B2841, which is approximately 9.30740105 × 106538.[26]
History
[edit]
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.[28][29] 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 Dobiński 1877 which gives Dobiński's formula for the Bell numbers. Bell called these numbers "exponential numbers"; the name "Bell numbers" and the notation Bn for these numbers was given to them by Becker & Riordan 1948.[30]
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) 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 B5, were recorded by 52 different diagrams, which were printed above the chapter headings in some editions of The Tale of Genji.[27][31]
In Srinivasa Ramanujan's second notebook, he investigated both Bell polynomials and Bell numbers.[32] Early references for the Bell triangle, which has the Bell numbers on both of its sides, include Peirce 1880 and Aitken 1933.
See also
[edit]Notes
[edit]- ^ a b Gardner 1978.
- ^ Halmos, Paul R. (1974). Naive set theory. Undergraduate Texts in Mathematics. Springer-Verlag, New York-Heidelberg. pp. 27–28. ISBN 9781475716450. MR 0453532.
- ^ Williams 1945 credits this observation to Silvio Minetola's Principii di Analisi Combinatoria (1909).
- ^ Claesson (2001).
- ^ Callan (2006).
- ^ Sloane, N. J. A. (ed.). "Sequence A011971 (Aitken's array)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- ^ Wilf 1994, p. 23.
- ^ Conway & Guy (1996).
- ^ "Stirling Numbers of the Second Kind, Theorem 3.4.1".
- ^ a b Komatsu, Takao; Pita-Ruiz, Claudio (2018). "Some formulas for Bell numbers". Filomat. 32 (11): 3881–3889. doi:10.2298/FIL1811881K. ISSN 0354-5180.
- ^ a b Flajolet & Sedgewick 2009.
- ^ a b Rota 1964.
- ^ Wilf 1994, pp. 20–23.
- ^ a b Bender & Williamson 2006.
- ^ Dobiński 1877.
- ^ Becker & Riordan (1948).
- ^ Hurst & Schultz (2009).
- ^ Williams 1945.
- ^ Wagstaff 1996.
- ^ Simon, Barry (2010). "Example 15.4.6 (Asymptotics of Bell Numbers)". Complex Analysis (PDF). pp. 772–774. Archived from the original (PDF) on 2014-01-24. Retrieved 2012-09-02.
- ^ Engel 1994.
- ^ Canfield 1995.
- ^ Asai, Kubo & Kuo 2000.
- ^ Lovász (1993).
- ^ Canfield, Rod (July 1994). "The Moser-Wyman expansion of the Bell numbers" (PDF). Retrieved 2013-10-24.
- ^ Sloane, N. J. A. (ed.). "Sequence A051131". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- ^ a b Knuth 2013.
- ^ Bell 1934.
- ^ Bell 1938.
- ^ Rota 1964. However, Rota gives an incorrect date, 1934, for Becker & Riordan 1948.
- ^ Gardner 1978 and Berndt 2011 also mention the connection between Bell numbers and The Tale of Genji, in less detail.
- ^ Berndt 2011.
References
[edit]- Asai, Nobuhiro; Kubo, Izumi; Kuo, Hui-Hsiung (2000). "Bell numbers, log-concavity, and log-convexity". Acta Applicandae Mathematicae. 63 (1–3): 79–87. arXiv:math/0104137. doi:10.1023/A:1010738827855. MR 1831247. S2CID 16533831.
- Aitken, A. C. (1933). "A problem in combinations". Mathematical Notes. 28: 18–23. doi:10.1017/S1757748900002334.
- Becker, H. W.; Riordan, John (1948). "The arithmetic of Bell and Stirling numbers". American Journal of Mathematics. 70 (2): 385–394. doi:10.2307/2372336. JSTOR 2372336..
- Bell, E. T. (1934). "Exponential polynomials". Annals of Mathematics. 35 (2): 258–277. doi:10.2307/1968431. JSTOR 1968431..
- Bell, E. T. (1938). "The iterated exponential integers". Annals of Mathematics. 39 (3): 539–557. doi:10.2307/1968633. JSTOR 1968633..
- Bender, Edward A.; Williamson, S. Gill (2006). "Example 11.7, Set Partitions". Foundations of Combinatorics with Applications (PDF). Dover. pp. 319–320. ISBN 0-486-44603-4.
- Berend, Daniel; Tassa, Tamir (2010). "Improved bounds on Bell numbers and on moments of sums of random variables" (PDF). Probability and Mathematical Statistics. 30 (2): 185–205.
- Berndt, Bruce C. (2011). "Ramanujan Reaches His Hand From His Grave To Snatch Your Theorems From You" (PDF). Asia Pacific Mathematics Newsletter. 1 (2): 8–13.
- de Bruijn, N.G. (1981). Asymptotic methods in analysis (3rd ed.). Dover. p. 108.
- Callan, David (2006). "A combinatorial interpretation of the eigensequence for composition". Journal of Integer Sequences. 9 (1): 06.1.4. arXiv:math/0507169. Bibcode:2005math......7169C. MR 2193154.
- Canfield, E. Rodney (1995). "Engel's inequality for Bell numbers". Journal of Combinatorial Theory. Series A. 72 (1): 184–187. doi:10.1016/0097-3165(95)90033-0. MR 1354972.
- Claesson, Anders (2001). "Generalized pattern avoidance". European Journal of Combinatorics. 22 (7): 961–971. arXiv:math/0011235. doi:10.1006/eujc.2001.0515. MR 1857258.
- Conway, John Horton; Guy, Richard K. (1996). "Famous Families of Numbers: Bell Numbers and Stirling Numbers". The Book of Numbers. Copernicus Series. Springer. pp. 91–94. ISBN 9780387979939.
- Dobiński, G. (1877). "Summirung der Reihe für m = 1, 2, 3, 4, 5, …". Grunert's Archiv. 61: 333–336.
- Engel, Konrad (1994). "On the average rank of an element in a filter of the partition lattice". Journal of Combinatorial Theory. Series A. 65 (1): 67–78. doi:10.1016/0097-3165(94)90038-8. MR 1255264.
- Flajolet, Philippe; Sedgewick, Robert (2009). "II.3 Surjections, set partitions, and words". Analytic Combinatorics. Cambridge University Press. pp. 106–119.
- Gardner, Martin (1978). "The Bells: versatile numbers that can count partitions of a set, primes and even rhymes". Scientific American. 238 (5): 24–30. Bibcode:1978SciAm.238e..24G. doi:10.1038/scientificamerican0578-24. 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
- "Bell numbers". Encyclopedia of Mathematics. EMS Press. 2001 [1994].
- Hurst, Greg; Schultz, Andrew (2009). "An elementary (number theory) proof of Touchard's congruence". arXiv:0906.0696 [math.CO].
- Knuth, Donald E. (2013). "Two thousand years of combinatorics". In Wilson, Robin; Watkins, John J. (eds.). Combinatorics: Ancient and Modern. Oxford University Press. pp. 7–37.
- Lovász, L. (1993). "Section 1.14, Problem 9". Combinatorial Problems and Exercises (2nd ed.). Amsterdam, Netherlands: North-Holland. p. 17. ISBN 9780821869475. Zbl 0785.05001.
- Moser, Leo; Wyman, Max (1955). "An asymptotic formula for the Bell numbers". Transactions of the Royal Society of Canada, Section III. 49: 49–54. MR 0078489.
- Peirce, C. S. (1880). "On the algebra of logic". American Journal of Mathematics. 3 (1): 15–57. doi:10.2307/2369442. JSTOR 2369442..
- Rota, Gian-Carlo (1964). "The number of partitions of a set". American Mathematical Monthly. 71 (5): 498–504. doi:10.2307/2312585. JSTOR 2312585. MR 0161805.
- Spivey, Michael Z. (2008). "A generalized recurrence for Bell numbers" (PDF). Journal of Integer Sequences. 11 (2): Article 08.2.5, 3. Bibcode:2008JIntS..11...25S. MR 2420912.
- Wagstaff, Samuel S. (1996). "Aurifeuillian factorizations and the period of the Bell numbers modulo a prime". Mathematics of Computation. 65 (213): 383–391. Bibcode:1996MaCom..65..383W. doi:10.1090/S0025-5718-96-00683-7. MR 1325876.
- Wilf, Herbert S. (1994). Generatingfunctionology (PDF) (2nd ed.). Boston, MA: Academic Press. ISBN 0-12-751956-4. Zbl 0831.05001.
- Williams, G. T. (1945). "Numbers generated by the function eex − 1". American Mathematical Monthly. 52: 323–327. doi:10.2307/2305292. JSTOR 2305292. MR 0012612.
External links
[edit]- Robert Dickau. "Diagrams of Bell numbers". Archived from the original on 2010-01-12. Retrieved 2005-05-16.
- Weisstein, Eric W. "Bell Number". MathWorld.
- Gottfried Helms. "Further properties & Generalization of Bell-Numbers" (PDF).
Bell number
View on GrokipediaDefinition and examples
Definition
In combinatorics, the Bell number denotes the total number of ways to partition a set with elements into nonempty subsets.[3] A partition of a set is a collection of nonempty subsets such that and for all .[3] For example, consider the set . Its partitions are , , , , and , yielding .[3] The Bell numbers satisfy the explicit formula , where is the Stirling number of the second kind, which counts the number of partitions of an -element set into exactly nonempty subsets.[3] By convention, , corresponding to the single partition of the empty set.[3]Initial values
The initial Bell numbers provide concrete illustrations of the sequence's values for small nonnegative integers , starting from the empty set. These numbers are obtained by systematically enumerating the distinct ways to partition sets with elements.[2] The first sixteen Bell numbers, for to , are tabulated below to demonstrate their progression:| 0 | 1 |
| 1 | 1 |
| 2 | 2 |
| 3 | 5 |
| 4 | 15 |
| 5 | 52 |
| 6 | 203 |
| 7 | 877 |
| 8 | 4140 |
| 9 | 21147 |
| 10 | 115975 |
| 11 | 678570 |
| 12 | 4213597 |
| 13 | 27644437 |
| 14 | 190899322 |
| 15 | 1382958545 |
Combinatorial interpretations
Set partitions
A set partition of a finite set with elements is a collection of nonempty subsets of that are pairwise disjoint and whose union is exactly . These subsets, called blocks, group the elements of into distinct, non-overlapping groups without leaving any element unassigned. The Bell number counts the total number of such partitions for any -element set.[1] There exists a natural bijection between the set partitions of and the equivalence relations on . Specifically, given an equivalence relation on , the equivalence classes—sets of elements deemed equivalent under —form a partition of , with each class as a block. Conversely, any partition of defines an equivalence relation where two elements are equivalent if and only if they belong to the same block. This correspondence highlights the structural equivalence between partitioning and relational grouping in set theory. The number of set partitions of an -element set into exactly blocks is given by the Stirling number of the second kind , so . This partition perspective connects directly to surjective functions: the number of surjective (onto) functions from an -element set to a -element set is , as each such function assigns elements to labeled targets exhaustively, with the preimages forming an unordered partition into blocks that can then be labeled in ways. Thus, while surjections emphasize ordered codomains, the underlying structure reverts to the unordered blocks of set partitions, underscoring the primacy of the partition interpretation for Bell numbers. To illustrate, consider the set , for which . The partitions can be grouped by the number of blocks :-
For : 1 partition
-
For : 7 partitions
- One triple and one singleton (4 partitions):
, , , - Two doubletons (3 partitions):
, ,
- One triple and one singleton (4 partitions):
-
For : 6 partitions (each consisting of one doubleton and two singletons):
, , ,
, , -
For : 1 partition
Rhyme schemes
In poetry, a rhyme scheme specifies the pattern of end rhymes across the lines of a stanza, effectively partitioning the set of n lines into subsets where lines within each subset share the same rhyme sound.[4] This combinatorial structure aligns directly with the enumeration provided by Bell numbers, as each possible partitioning corresponds to a distinct rhyme scheme.[4] For a two-line stanza, the Bell number counts the schemes AA (both lines rhyme) and AB (lines rhyme differently).[4] With three lines, yields the schemes AAA (all rhyme), AAB (first two rhyme, third differs), ABA (first and third rhyme), ABB (last two rhyme), and ABC (all distinct).[4] This mapping mirrors the set partitions interpretation, where each block of the partition represents a group of lines assigned to the same rhyme sound, and distinct labels (such as A, B, C) differentiate the sounds across blocks.[4] As explored in the preceding section on set partitions, the total count of such configurations for n lines is the nth Bell number. The rhyme scheme application of Bell numbers has been utilized in linguistics and poetry analysis to systematically classify stanza structures and explore patterns in verse composition.[5]Factorizations
The Bell number provides a combinatorial interpretation in number theory by counting the number of unordered factorizations of a square-free positive integer with exactly distinct prime factors into integers greater than 1.[6] A square-free integer is one that is not divisible by any perfect square other than 1, meaning its prime factorization consists of distinct primes raised to the first power. For such an integer , where are distinct primes, an unordered factorization is a way to write as a product with each and the order of the factors disregarded. The total number of such factorizations equals , as each factorization corresponds uniquely to a partition of the set into non-empty subsets, where each subset's product forms one factor .[7] This bijection arises because grouping the primes into subsets mirrors the structure of set partitions: singleton subsets yield prime factors, while larger subsets yield composite factors from their products. For instance, the trivial partition into one block gives the single-factor representation itself, while the partition into singletons gives the full prime factorization. Since the factors are unordered, different permutations of the same grouping do not count as distinct, aligning precisely with the unordered nature of set partitions counted by .[6] To illustrate, consider : Let . There is only one factorization: . This matches . For : Let . The factorizations are (primes together) and (primes separate), giving 2 ways, matching . For : Let . The factorizations are:- (all primes together),
- , , (one pair and one singleton),
- (all separate).
Permutations
The Bell number enumerates the permutations of the set that avoid the generalized pattern .[8] In generalized pattern avoidance, the notation specifies an occurrence as indices in a permutation where , meaning an earlier entry smaller than an adjacent increasing pair later in the sequence. Thus, -avoiding permutations are those with no such configuration, ensuring that every adjacent ascent is either at the start or lacks a smaller preceding value. This interpretation aligns with the known values of Bell numbers for small . For , the single permutation avoids the pattern. For , both and avoid it, as no valid triple exists. For , the avoiding permutations are , , , , and ; the permutation contains an occurrence at positions since . This yields 5 permutations, matching . A bijection maps these avoiding permutations to set partitions of $$ by interpreting the permutation's structure—specifically, its descents and ascents—as defining partition blocks in a canonical decreasing order within blocks, with the avoidance condition preserving the partition's integrity. This connection highlights the combinatorial equivalence between the two objects.[8]Computation methods
Recurrence relations
The Bell numbers satisfy the initial condition and the recurrence relation for .[1] This relation provides a direct method for iterative computation of successive Bell numbers from prior values. The recurrence follows from the combinatorial meaning of Bell numbers as the number of partitions of an -element set . Consider the block containing the distinguished element ; this block includes together with some subset of elements from , where . There are ways to choose this subset, and the remaining elements can then be partitioned arbitrarily in ways. Summing over all possible and substituting yields the given formula.[4] To illustrate, the computation of (assuming prior values , , , ) proceeds as Similar steps yield higher terms, such as . Although the recurrence enables computation via dynamic programming in time to obtain (as each of the steps requires additions), practical limits arise for large due to the super-exponential growth of the numbers themselves, which exceed standard integer precision beyond without specialized big-integer arithmetic.Bell triangle
The Bell triangle, also known as Aitken's array or the Peirce triangle, is a triangular array of natural numbers that facilitates the computation of Bell numbers through successive additions, much like Pascal's triangle but with a shifted starting point for each row.[9] The array is indexed by row number and column index , with entries denoted . It begins with the single entry . For , the first entry of each row is set to the last entry of the previous row: . Subsequent entries in the row are computed as for . This construction directly yields the Bell numbers as the leftmost column for each . The name "Bell triangle" refers to the Bell numbers appearing in the first column.[10] The following table illustrates the first six rows (up to ) of the Bell triangle:| 0 | 1 | |||||
| 1 | 1 | 2 | ||||
| 2 | 2 | 3 | 5 | |||
| 3 | 5 | 7 | 10 | 15 | ||
| 4 | 15 | 20 | 27 | 37 | 52 | |
| 5 | 52 | 67 | 87 | 114 | 151 | 203 |
Mathematical properties
Generating functions
The exponential generating function for the Bell numbers is given by This closed-form expression arises from the combinatorial interpretation of Bell numbers as the number of partitions of an -element set.[11] To derive this, consider the exponential formula for labeled structures, which states that the exponential generating function for set partitions is the exponential of the generating function for the connected components (nonempty subsets). The exponential generating function for nonempty subsets of size is , since each subset is a single block without further structure. Applying the exponential formula yields , where the outer exponential accounts for the disjoint union of blocks forming the partition.[11][12] Alternatively, the formula can be obtained from the recurrence with . Multiplying by and summing over leads to the differential equation with , whose solution is .[13] The ordinary generating function lacks a simple closed form but satisfies the functional equation .[14] This exponential generating function facilitates derivations of other identities, such as expressing the raw moments of a Poisson random variable with parameter , where the th moment equals .[15]Summation formulas
One explicit summation formula for the Bell number expresses it as the sum of the Stirling numbers of the second kind from to : where denotes the number of ways to partition an -element set into exactly nonempty unlabeled subsets.[1] This relation follows directly from the combinatorial interpretation of Bell numbers as the total number of partitions of an -element set, aggregating over all possible numbers of subsets. A well-known infinite summation formula, known as Dobiński's formula, provides another explicit expression: This formula, first derived by Dobiński in 1877, arises from the exponential generating function for Bell numbers or through probabilistic arguments.[16] One derivation interprets the sum as the th factorial moment of a Poisson random variable with parameter 1, which equals due to the connection between set partitions and the moments of this distribution.[17] Numerical verification of Dobiński's formula holds for small values of . For , the sum is . For , it yields . For , the partial sum up to approximates 5, matching , with convergence improving for larger terms.[16]Asymptotic growth
The asymptotic growth of the Bell numbers is characterized by a formula involving the Lambert function, which provides a precise approximation for large . Define , the principal branch of the Lambert function satisfying . Equivalently, let , so that . Then, as , with relative error .[18] This expression captures the dominant behavior, where the term reflects the rapid exponential growth modulated by the saddle point determined by the generating function. This asymptotic was originally derived by Moser and Wyman using a method based on the integral representation of the Bell numbers via the exponential generating function , applying a saddle-point approximation around the point where the integrand achieves its maximum contribution.[19] De Bruijn later refined the analysis, confirming the form through detailed expansion of the contour integral and error estimates. The Lambert function emerges naturally as the solution to the transcendental equation defining the saddle point , which asymptotically behaves as .[18] Compared to the factorial , which grows as or roughly , the Bell numbers exhibit faster growth: . This places between single-exponential functions like and fully double-exponential ones like , highlighting their superexponential yet sub-double-exponential nature in combinatorial enumeration.[18] For illustration, and the approximation yields a relative error below 1%, while for , with error under 0.1%.[20]Log-concavity
The sequence of normalized Bell numbers, , is log-concave, satisfying for all , with equality holding only for small values of . This property follows from the structure of the exponential generating function for the Bell numbers, , which preserves log-concavity through analytic continuation and coefficient extraction techniques. Alternatively, a proof can be sketched using the representation , where are the Stirling numbers of the second kind; the log-concavity arises inductively from the recurrence relations and positivity of these coefficients. A stronger underlying property is the total positivity of the Stirling triangle, where all minors of the matrix with entries are positive. This total positivity, as established by Karlin, implies the log-concavity of each row via the theory of variation-diminishing transformations and Pólya frequency sequences.[21] In turn, this row log-concavity contributes to the overall log-concavity of the normalized Bell sequence through summation and normalization.[21] The log-concavity of has implications for combinatorial inequalities, such as bounding partial sums of Bell numbers and establishing unimodality in related partition statistics, which are useful in asymptotic analysis and probabilistic models of set partitions. For instance, it facilitates Newton's inequalities for the coefficients of the generating function, providing tighter estimates on growth compared to crude asymptotic approximations.Modular properties
The modular properties of Bell numbers have been studied extensively in number theory and combinatorics, particularly in relation to primes and the behavior of the sequence modulo p. A fundamental result is Touchard's congruence, which states that for any prime p and nonnegative integer n, This congruence, originally due to Jacques Touchard, allows recursive computation of Bell numbers modulo p and implies that the sequence {B_n \mod p} satisfies a linear recurrence of order 2 with periodic coefficients. As a consequence, B_p \equiv B_0 + B_1 = 2 \pmod{p}. The result follows from the explicit formula for Bell numbers in terms of Stirling numbers of the second kind and properties of falling factorials modulo p.[22] Another important congruence relates Bell numbers to derangement numbers D_m modulo p. For a prime p, B_{p-1} \equiv D_{p-1} + 1 \pmod{p}. Derangement numbers count permutations without fixed points, and for primes p > 2, D_{p-1} \equiv -1 \pmod{p} in many cases, though exceptions occur for small p (e.g., p=3 where D_2 = 1 \not\equiv -1 \pmod{3}). This yields B_{p-1} \equiv 0 \pmod{p} for p=5 (B_4=15 \equiv 0) and p=7 (B_6=203 \equiv 0), but B_2=2 \equiv -1 \pmod{3} for p=3. The congruence arises from generating function identities and evaluations at roots of unity modulo p.[22] The sequence of Bell numbers modulo a prime p is purely periodic, with the minimal period dividing N_p = p^{p-1}/(p-1). Computations show that the minimal period equals N_p for all primes p < 126 and several larger ones (e.g., p=137,149). For small p, this yields short observable patterns, but the full period grows rapidly. Touchard's congruence facilitates verifying periodicity by checking alignment after shifts of length N_p. Known bounds indicate that the minimal period does not divide any proper divisor of N_p involving small prime factors q of N_p, confirmed computationally up to p < 1100.[23] Examples for small primes illustrate these properties. The following table lists the first 12 Bell numbers modulo 2, 3, 5, and 7:| n | B_n mod 2 | B_n mod 3 | B_n mod 5 | B_n mod 7 |
|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
| 2 | 0 | 2 | 2 | 2 |
| 3 | 1 | 2 | 0 | 5 |
| 4 | 1 | 0 | 0 | 1 |
| 5 | 0 | 1 | 2 | 3 |
| 6 | 1 | 2 | 3 | 0 |
| 7 | 1 | 1 | 2 | 2 |
| 8 | 0 | 0 | 0 | 3 |
| 9 | 1 | 0 | 2 | 0 |
| 10 | 1 | 1 | 0 | 6 |
| 11 | 0 | 0 | 0 | 4 |
Integral representations
The exponential generating function for the Bell numbers is . Applying Cauchy's integral formula to extract the coefficient of yields the contour integral representation where is any simple closed contour in the complex plane that encircles the origin positively and lies within the disk of analyticity of the integrand.[20] This representation plays a central role in analytic combinatorics, where it facilitates asymptotic analysis of via techniques such as saddle-point integration, revealing the dominant growth behavior given by the asymptotic expansion in the previous subsection. A remarkable real integral representation, discovered by Ernesto Cesàro in 1885 and later corrected for a missing factorial factor, is for .[25] This formula stems from expressing Bell numbers in terms of Stirling numbers of the second kind and exploiting the orthogonality of the sine functions over .[25] An equivalent fully real form expands the complex exponential: [25] Both variants enable numerical evaluation of and have been verified computationally for small , such as , , and .[25]Applications and variants
Probability distributions
The Bell numbers arise naturally in the study of moments for the Poisson distribution. Specifically, if is a Poisson random variable with mean parameter 1, then the th raw moment equals the th Bell number . This equivalence follows from Dobiński's formula, which expresses , precisely the form of the expectation under the Poisson(1) probability mass function .[16] This connection generalizes through the Touchard polynomials, defined as , where are the Stirling numbers of the second kind. For a Poisson random variable with mean parameter , the th raw moment is , so .[26] The moment generating function provides a direct way to derive these moments. For , the mgf is . The th raw moment is then the th derivative of evaluated at , which yields . Equivalently, the exponential generating function for the Touchard polynomials is , aligning with the mgf scaled by the factorial moments.[26] For illustration, consider small values of : when , ; for , ; and for , , computed via the mgf or Touchard expansion . These examples highlight how the combinatorial structure of Bell numbers captures the higher-order moments of the Poisson(1) distribution.[27]Bell primes
A Bell prime is defined as a Bell number that is also a prime number.[28] The smallest such primes occur for small indices: , , and .[1] Further examples include , which was verified as prime using advanced primality testing algorithms.[28] Larger Bell primes are exceedingly rare due to the rapid, double-exponential growth of Bell numbers, which makes them susceptible to factorization despite their size.[1] The known indices where is prime are 2, 3, 7, 13, 42, 55, and 2841, with (38 digits) and (54 digits) having values exceeding , and having 6,539 digits.[28][29] The primality of was certified using the Primo software, a deterministic primality prover capable of handling massive integers.[28] Checking primality for large Bell numbers typically involves probabilistic tests such as the Miller-Rabin algorithm for initial screening, followed by deterministic methods like the AKS test or specialized provers for confirmation.[1] Modular properties of Bell numbers can occasionally aid in identifying factors for smaller composite cases, though this is less effective for enormous primes like .[28] No additional Bell primes have been identified beyond as of November 2025, underscoring their scarcity.[28]Historical development
Early computations
Even earlier, in 1321, the Persian mathematician Kamāl al-Dīn al-Fārisī listed Bell numbers up to in a work on astronomy, predating both Japanese and European efforts.[30] In the 18th century, Japanese mathematician Yoshisuke Matsunaga (1694?–1744) made significant early contributions to the computation of Bell numbers during the Edo period, motivated by problems in Genjikō combinatorics, a traditional game involving arrangements of stones. In his 1726 manuscript Danren Sōjutsu, Matsunaga developed a method using what are now known as Matsunaga numbers (related to signed Stirling numbers of the first kind) to calculate Bell numbers via the relation , where are the Matsunaga numbers. He computed values up to , including , , , , , , employing tabular methods and Horner's rule for efficiency. Matsunaga's work remained unpublished during his lifetime, but it was extended and popularized by Yoriyuki Arima (1714–1783) in his 1763 book Danren Henkyokuhō. Arima refined the recurrence to and computed Bell numbers up to , solving for in a 1769 problem from Shūki Sanpō. These calculations predated known European efforts and were part of the Wasan tradition, linking set partitions to combinatorial games without explicit recognition of the numbers' broader significance. In Europe, sequences of Bell numbers appeared as early as 1796 by Christian Kramp, with further listings in works like Whitworth's 1870 Choice and Chance in the context of partitions, though without a general formula. In 1877, Gustaw Dobiński provided the first explicit formula, , enabling computations beyond small n. A key advancement came in 1880 when American philosopher and mathematician Charles Sanders Peirce independently discovered the Bell triangle (also known as the Peirce triangle), a recursive array for computing Bell numbers displaying the Stirling numbers of the second kind , where each entry satisfies , with , for , , and the row sums giving the Bell numbers. Peirce used this in his algebraic logic framework to enumerate logical associations, computing values up to at least . The triangle provided an efficient tabular method, akin to Pascal's triangle, for generating the sequence:| Row | Entries (partial) | Bell Number (sum) |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 1 | 1 |
| 2 | 1 1 | 2 |
| 3 | 1 3 1 | 5 |
| 4 | 1 7 6 1 | 15 |
| 5 | 1 15 25 10 1 | 52 |
