KNOWPIA
WELCOME TO KNOWPIA

In 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.

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.

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:

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]}

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 *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

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 *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.^{[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.

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.

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 *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.^{[8]}

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:^{[9]}

Other finite sum formulas using Stirling numbers of the first kind include^{[9]}

which simplifies down with to

and with , to

which can be seen as the inversion formula for Stirling numbers applied to Spivey’s formula.

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.^{[10]}

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.^{[11]}^{[12]}^{[13]}

The Bell numbers satisfy Dobinski's formula^{[14]}^{[11]}^{[13]}

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.^{[10]}
It allows *B _{n}* to be interpreted as the

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 as a function of the first *n* cumulants.

The Bell numbers obey Touchard's congruence: If *p* is any prime number then^{[15]}

or, generalizing^{[16]}

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).^{[17]}^{[18]}

The period of the Bell numbers to modulo *n* are

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.^{[19]}

The Bell numbers form a logarithmically convex sequence. Dividing them by the factorials, *B*_{n}/*n*!, gives a logarithmically concave sequence.^{[20]}^{[21]}^{[22]}

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 ^{[23]}

Moser & Wyman 1955 established the expansion

uniformly for as , where and each and are known expressions in .^{[24]}

The asymptotic expression

was established by de Bruijn 1981.

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 *B*_{2841}, which is approximately 9.30740105 × 10^{6538}.^{[25]}

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.^{[27]}^{[28]} 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 *B _{n}* for these numbers was given to them by Becker & Riordan 1948.

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 *genji-ko* 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.*^{[26]}^{[30]}

In Srinivasa Ramanujan's second notebook, he investigated both Bell polynomials and Bell numbers.^{[31]}
Early references for the Bell triangle, which has the Bell numbers on both of its sides, include Peirce 1880 and Aitken 1933.

- ^
^{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).- ^
^{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.

- 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, D.; Tassa, T. (2010). "Improved bounds on Bell numbers and on moments of sums of random variables".
*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
*e*^{ex − 1}".*American Mathematical Monthly*.**52**: 323–327. doi:10.2307/2305292. JSTOR 2305292. MR 0012612.

- Robert Dickau. "Diagrams of Bell numbers".
- Weisstein, Eric W. "Bell Number".
*MathWorld*. - Gottfried Helms. "Further properties & Generalization of Bell-Numbers" (PDF).