Bell Number

Count partitions of an n-element labeled set as an exact decimal integer; n is capped at 300 for bounded computation.

Description

Bell numbers count all partitions of a labeled set into nonempty unlabeled blocks, regardless of block count.

Bell numbers count all partitions of a labeled set into nonempty unlabeled blocks, regardless of block count. The empty set has one partition.1

The tool returns value. The indexing and output conventions below determine how to read these values.

When to use Bell Number

Use this for the following task: Count partitions of an n-element labeled set as an exact decimal integer; n is capped at 300 for bounded computation. Use the input and output conventions below to reproduce the intended mathematical quantity.

How to use Bell Number and understand its results

  1. Choose the required indexes, integers or sequence entries. Preserve decimal-string encodings where the field table specifies strings.
  2. Enter n according to the field table, then run the tool.
  3. Read value. Preserve exact decimal strings and the stated indexing or coefficient order.
  4. Keep exact decimal strings for subsequent integer arithmetic; distinguish them from any explicitly approximate numeric result.
Input fieldMeaningValue type and boundsRequirement
nSet size (resource limit 300)integer; minimum 0; maximum 300Required

Build the BigInt Bell triangle, starting with [1], placing the previous row’s last value first and then adding neighboring values. Return row n’s first value.

B(n)=Σ[k=0..n]S(n,k), obtained as the first entry of Aitken triangle row n

The symbols and boundary conditions refer to the supplied fields and the implementation described above.

Output fieldMeaningValue type
valueBell numberstring (integer/arbitrary)
json
{
  "input": {
    "n": 5
  },
  "output": {
    "value": "52"
  }
}

Limitations and assumptions

The set size is at most 300. The tool returns a count without listing partitions or fixing the number of blocks.

Use the declared integer bounds and string formats. Large exact outputs remain decimal strings; numerical approximations use ordinary floating-point arithmetic. A rejected input is different from a valid zero count or false membership flag.

Alternative or Complementary methods

Choose Stirling Number of the Second Kind when you need its operation: Count partitions of n labeled elements into k nonempty unlabeled blocks exactly, returning zero when k exceeds n; indices are capped at 300. Choose Bell Triangle Entry for the complementary operation: Return the zero-indexed Aitken Bell triangle entry with row zero [1], each row starting at the previous row’s last entry, and a 300-row resource limit.

Background reference: Digital Library of Mathematical Functions, §26.7.

References

  1. Digital Library of Mathematical Functions, §26.7 — National Institute of Standards and Technology

Similar or alternative tools

  • Stirling Number of the Second Kind

    Count partitions of n labeled elements into k nonempty unlabeled blocks exactly, returning zero when k exceeds n; indices are capped at 300.

  • Bell Triangle Entry

    Return the zero-indexed Aitken Bell triangle entry with row zero [1], each row starting at the previous row’s last entry, and a 300-row resource limit.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies