bellnumber

Calculates the Bell number which counts the number of partitions in a set of n elements. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Integer n

Output

Integer Bell number

Examples

bellnumber