BellNumber
The nth Bell number, counting the ways to partition a set of n elements.
Bell numberMathWorldBellNumberWikidataQ816063DLMF26.7.iFungrimBellNumber✓Fungrim entry60dc3e✓f4e249✓OEISA000110Wolfram LanguageBellB!BellNumber(n)the nth Bell number , the number of partitions of an n-element set.BellNumber(n, x)the Bell (Touchard) polynomial , exact for a nonnegative integer n.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | compute-engine | always |
(integer, any?) -> any | number-theoryreplaces compute-engine | always |
Details
- Recurrence , built from Binomial and the lower Bell numbers.
- Generating function .
- Equals the sum of Stirling numbers of the second kind over all block counts, .
- Also arise as the nth moment of a Poisson distribution with mean 1.
- compute-engine requires a nonnegative integer argument; a negative n is left unevaluated.
- The two-argument form is the Bell (Touchard) polynomial; .
Examples
1 more kept as data, checked against the oraclesScope #
Applications #
Properties #
Two elements split into set partitions in 2 ways
live ↗Known value · Wolfram MathematicalFunctionData, BellB
203 set partitions of a 6-element set
live ↗Known value · Wolfram MathematicalFunctionData, BellB
877 set partitions of a 7-element set
live ↗Known value · Wolfram MathematicalFunctionData, BellB
The Bell polynomial vanishes at 0
live ↗Known value · Wolfram MathematicalFunctionData, BellB:Polynomial
The Bell polynomial vanishes at 0
live ↗Known value · Wolfram MathematicalFunctionData, BellB:Polynomial
About
| Examples | 26 |
|---|---|
| Checked against | Wolfram Language 25 agree1 differSageMath 17 agree2 errorSymPy 17 agree2 errormathlib4 14 agree5 errorOscar 8 agree4 errorJulia 16 agree2 error |
| Crosswalk | WikipediaMathWorldWikidataDLMFFungrimFungrim entry ×2OEISWolfram LanguageSageMathSymPyOscarJulia |
Implementation
wolframpackages/oracle/src/mappings.tsWolfram spells it BellB. Julia's bare bell(::Int) tries to fit an arbitrary-precision result into an Int64 past n≈25; ZZ keeps it exact.
sympypackages/oracle/src/mappings.tsWolfram spells it BellB. Julia's bare bell(::Int) tries to fit an arbitrary-precision result into an Int64 past n≈25; ZZ keeps it exact.
sagepackages/oracle/src/mappings.tsWolfram spells it BellB. Julia's bare bell(::Int) tries to fit an arbitrary-precision result into an Int64 past n≈25; ZZ keeps it exact.
oscarpackages/oracle/src/mappings.tsWolfram spells it BellB. Julia's bare bell(::Int) tries to fit an arbitrary-precision result into an Int64 past n≈25; ZZ keeps it exact.
juliapackages/oracle/src/mappings.tsWolfram spells it BellB. Julia's bare bell(::Int) tries to fit an arbitrary-precision result into an Int64 past n≈25; ZZ keeps it exact.
mathlib4packages/oracle/src/mappings.tsNat.bell counts the partitions of an n-element set, B(0) = 1; natural n only.
See also: StirlingS1