Bell Number Calculator

Bₙ = total set partitions

CalculatorsFreeNo Signup
4.6(79 reviews)
All Tools

Loading tool...

About Bell Number Calculator

A Bell number calculator computing Bₙ = total number of partitions of {1,...,n}. Shows Bell triangle, Dobinski formula Bₙ = (1/e)Σkⁿ/k!, and recurrence via Stirling numbers. All calculations are client-side.

Bell Number Calculator Features

  • Bₙ
  • Bell triangle
  • Dobinski
  • Stirling sum
  • Table
Bell number Bₙ: total partitions of {1,...,n}. B₀=1, B₁=1, B₂=2, B₃=5, B₄=15, B₅=52. Bₙ = Σₖ S₂(n,k) (sum of Stirling second kind). Dobinski: Bₙ = (1/e)Σₖ₌₀ kⁿ/k!. Bell triangle recurrence for computation.

How to Use

Enter n:

  • n: Set size
  • Bₙ: Bell number
  • Triangle: Bell triangle

Bell Triangle

Row 0: [1]. Each row starts with last element of previous row, then aᵢ = aᵢ₋₁ + element above aᵢ₋₁. Bₙ = first element of row n+1 = last element of row n.

Applications

  • Counting equivalence relations
  • Set partition lattice
  • Exponential generating function: e^(eˣ−1)
  • Combinatorial species

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Get Bₙ.
  3. 3View Bell triangle.
  4. 4See Stirling decomposition.
  5. 5Check table.

Bell Number Calculator — Frequently Asked Questions

How does the Bell triangle work?+

Start with B[0][0]=1. Each new row: B[n][0] = B[n-1][last]. Then B[n][j] = B[n][j-1] + B[n-1][j-1]. The Bell number Bₙ appears as B[n][0]. This is more efficient than computing all Stirling numbers.

What is Dobinski's formula?+

Bₙ = (1/e)Σₖ₌₀^∞ kⁿ/k!. This infinite series converges fast because k! grows faster than kⁿ. It connects Bell numbers to the Poisson distribution with parameter 1: Bₙ = E[Xⁿ] where X~Poisson(1).

How fast do Bell numbers grow?+

Bₙ ~ (n/W(n))ⁿ · e^(n/W(n)−n−1) / √(W(n)) where W is Lambert W. Roughly: B₁₀ = 115,975; B₂₀ ≈ 5.17×10¹³; B₅₀ ≈ 1.86×10⁴⁷. Super-exponential growth.

Share this tool: