Türkçe ansiklopedi, sözlük, genel başvuru ve bilgi sitesi   
 
  Yardım
  Rastgele    

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 [ A000110] in OEIS):

1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147, 115975


(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 {abc} can be partitioned in 5 distinct ways:

{ {a}, {b}, {c} }
{ {a}, {b, c} }
{ {b}, {a, c} }
{ {c}, {a, b} }
{ {a, b, c} }


B0 is 1 because there is exactly one partition of the empty set. Every member of the empty set is a nonempty set (that is vacuously true), and their union is the empty set. Therefore, the empty set is the only partition of itself.

Note that, as suggested by the set notation above, we consider neither the order of the partitions nor the order of elements within each partition. This means the following partitionings are all considered identical:

{ {b}, {a, c} }
{ {a, c}, {b} }
{ {b}, {c, a} }
{ {c, a}, {b} }

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:

Properties of Bell numbers

The Bell numbers satisfy this recursion formula:



They also satisfy "Dobinski's formula":

: = the nth moment of a Poisson distribution with expected value 1.
And they satisfy "Touchard's congruence": If p is any prime number then



Each Bell number is a sum of Stirling numbers of the second kind



The Stirling number S(n, k) is the number of ways to partition a set of cardinality n into exactly k nonempty subsets.

The nth Bell number is also the sum of the coefficients in the polynomial that expresses the nth moment of any probability distribution as a function of the first n cumulants; this way of enumerating partitions is not as coarse as that given by the Stirling numbers.

The exponential generating function of the Bell numbers is

Asymptotic limit

The asymptotic formula of the Bell numbers is



Here where W is the Lambert W function.

(Lovász, 1993)

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:
  1. Start with the number one. Put this on a row by itself.
  2. Start a new row with the rightmost element from the previous row as the leftmost number
  3. 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)
  4. Repeat step three until there is a new row with one more number than the previous row
  5. The number on the left hand side of a given row is the Bell number for that row.


For example, the first row is made by placing one by itself. The next (second) row is made by taking the rightmost number from the previous row (1), and placing it on a new row. We now have a structure like this:

>
 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's left (three) and the number above the number to x's left (two). The sum is five.

Here is the first five rows of this triangle:

>
 1
 1  2
 2  3  5
 5  7 10 15
15 20 27 37 52


The fifth row is calculated thus: The following is example code in the Ruby programming language that prints out all the Bell numbers from the 1st to the 300th inclusive (the limits can be adjusted)
  1. !/usr/bin/env ruby


def print_bell_numbers(start,finish)
  1. Initialize the Bell triangle as a two-dimensional array
triangle = Array[Array[1]]
  1. Make sure "start" is less than "finish", and both numbers are at least 1
(finish, start = start, finish) if finish < start start = 1 if start < 1 finish = 1 if finish < 1

1.upto(finish-1) do |row_num|
  1. Set the first element of the current row to be the last element
  2. of the previous row
current_row = [triangle[row_num-1][row_num-1]]
  1. Calculate the rest of the elements in this row, then add the row
  2. to the Bell triangle
1.upto(row_num) do |col_num| sum = triangle[row_num-1][col_num-1] + current_row[col_num-1] current_row.push(sum) end

triangle[row_num] = current_row

end
  1. Print out the Bell numbers
start.upto(finish) do |num| puts triangle[num-1][0] end end

print_bell_numbers(1,300)

The number in the nth row and kth column is the number of partitions of {1, ..., n} such that n is not together in one class with any of the elements k, k + 1, ..., n − 1. For example, there are 7 partitions of {1, ..., 4} such that 4 is not together in one class with either of the elements 2, 3, and there are 10 partitions of {1, ..., 4} such that 4 is not together in one class with element 3. The difference is due to 3 partitions of {1, ..., 4} such that 4 is together in one class with element 2, but not with element 3. This corresponds to the fact that there are 3 partitions of {1, ..., 3} such that 3 is not together in one class with element 2: for counting partitions two elements which are always in one class can be treated as just one element. The 3 appears in the previous row of the table.

Prime Bell numbers

The first few Bell numbers that are primes are:

2, 5, 877, 27644437, 35742549198872617291353508656626642567, 359334085968622831041960188598043661065388726959079837


corresponding to the indices 2, 3, 7, 13, 42 and 55 (sequence [ A051130] in OEIS)

The next prime is B2841, which is approximately 9.30740105 × 106538. [1] As of 2006, it is the largest known prime Bell number. Phil Carmody showed it was a probable prime in 2002. After 17 months of computation with Marcel Martin's ECPP program Primo, Ignacio Larrosa Cañestro proved it to be prime in 2004. He ruled out any other possible primes below B6000, later extended to B30447 by Eric Weisstein.

References

See also

External links

Combinatorics is a branch of pure mathematics concerning the study of discrete (and usually finite) objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects such as computer science
..... Click the link for more information.
Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Click the link for more information.
Eric Temple Bell
Born January 7 1883(1883--)
Peterhead, Scotland
Died November 21 1960 (aged 77)
Watsonville, California
..... Click the link for more information.
partition of a set X is a division of X into non-overlapping "parts" or "blocks" or "cells" that cover all of X. More formally, these "cells" are both collectively exhaustive and mutually exclusive with respect to the set being
..... Click the link for more information.
SET may stand for:
..... Click the link for more information.
In mathematics, the elements or members of a set (or more generally a class) are all those objects which when collected together make up the set (or class).

Set theory and elements

Writing , means that the elements of the set are the numbers 1, 2, 3 and 4.
..... Click the link for more information.
In mathematics, an equivalence relation is a binary relation between two elements of a set which groups them together as being "equivalent" in some way. That a is equivalent to b is denoted as "a ~ b" or "ab".
..... Click the link for more information.
The On-Line Encyclopedia of Integer Sequences (OEIS), also cited simply as Sloane's, is an extensive searchable database of integer sequences, freely available on the Web.
..... Click the link for more information.

0 1 2 3 4 5 6 7 8 9

..... Click the link for more information.
2 (two) is a number, numeral, and glyph. It is the natural number following 1 and preceding 3.

In mathematics

Two has many properties in mathematics.[1] An integer is called even if it is divisible by 2.
..... Click the link for more information.
This article discusses the number five. For the year 5 AD, see 5. For other uses of 5, see 5 (disambiguation).

0 1 2 3 4 5 6 7 8 9

..... Click the link for more information.
15 (fifteen) is the natural number following 14 and preceding 16. In English, it is the smallest integer with seven letters in its spelled out name.

In mathematics


..... Click the link for more information.
52 (fifty-two) is the natural number following 51 and preceding 53.

In mathematics

Fifty-two is the 5th Bell number and a decagonal number. It is an untouchable number, since it is never the sum of proper divisors of any number, and it is a
..... Click the link for more information.
partition of a set X is a division of X into non-overlapping "parts" or "blocks" or "cells" that cover all of X. More formally, these "cells" are both collectively exhaustive and mutually exclusive with respect to the set being
..... Click the link for more information.
empty set is the unique set which contains no elements. In axiomatic set theory it is postulated to exist by the axiom of empty set. The empty set is also sometimes called the null set
..... Click the link for more information.
This article or section may contain original research or unverified claims.
Please help Wikipedia by adding references. See the for details.
This article has been tagged since September 2007.

..... Click the link for more information.
In combinatorial mathematics, Dobinski's formula states that the number of partitions of a set of n members is



This has come to be called the nth Bell number Bn, after Eric Temple Bell.
..... Click the link for more information.
See also moment (physics).


The concept of moment in mathematics evolved from the concept of moment in physics. The nth moment of a real-valued function f(x) of a real variable about a value c is
..... Click the link for more information.
Poisson distribution is a discrete probability distribution that expresses the probability of a number of events occurring in a fixed period of time if these events occur with a known average rate, and are independent of the time since the last event.
..... Click the link for more information.
expected value (or mathematical expectation, or mean) of a discrete random variable is the sum of the probability of each possible outcome of the experiment multiplied by the outcome value (or payoff).
..... Click the link for more information.
In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number divisors: 1 and itself. An infinitude of prime numbers exists, as demonstrated by Euclid in about 300 BC.
..... Click the link for more information.
In mathematics, Stirling numbers of the second kind, together with Stirling numbers of the first kind, are one of the two types of Stirling numbers. They commonly occur in the study of combinatorics, where they count the number of permutations.
..... Click the link for more information.
See also moment (physics).


The concept of moment in mathematics evolved from the concept of moment in physics. The nth moment of a real-valued function f(x) of a real variable about a value c is
..... Click the link for more information.
probability distribution that assigns a probability to every subset (more precisely every measurable subset) of its state space in such a way that the probability axioms are satisfied.
..... Click the link for more information.
cumulants: μ = κ1 and σ2 = κ2.

The cumulants κn are defined by the cumulant-generating function:


..... Click the link for more information.
generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers.

There are various types of generating functions, including ordinary generating functions,
..... Click the link for more information.
Lambert W function, named after Johann Heinrich Lambert, also called the Omega function or product log, is the inverse function of f(w) = wew where ew
..... Click the link for more information.
László Lovász (born March 9,1948 in Budapest, Hungary) is a mathematician, best known for his work in combinatorics, for which he was awarded the Wolf Prize and the Knuth Prize in 1999.

Lovász received his Ph.D. in 1970 at Eötvös Loránd University.
..... Click the link for more information.
Ruby

Paradigm: multi-paradigm (functional, imperative, logic, object-oriented (class-based))
Appeared in: 1995
Designed by: Yukihiro Matsumoto
Developer: Yukihiro Matsumoto (among others)
Latest release: 1.8.
..... Click the link for more information.
The On-Line Encyclopedia of Integer Sequences (OEIS), also cited simply as Sloane's, is an extensive searchable database of integer sequences, freely available on the Web.
..... Click the link for more information.


This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.