Bell Number calculator - MATLAB Cody - MATLAB Central

Problem 2248. Bell Number calculator

Difficulty:Rate
Calculate a vector of Bell numbers for sets up to length n. Bell numbers are the maximum number of partitions of a set. See the Wikipedia entry for Bell Number.
Example
Belln(8) = [1 1 2 5 15 52 203 877 4140]

Solution Stats

48.25% Correct | 51.75% Incorrect
Last Solution submitted on Oct 05, 2025

Problem Comments

Solution Comments

Show comments
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers184

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!