A000110: Bell numbers

BellR Documentation

Bell numbers

Description

Under OEIS A000110, the nth Bell number is the number of ways to partition a set of n labeled elements, where the first 6 entries are 1, 1, 2, 5, 15, 52.

Usage

Bell(n, gmp = TRUE)

Arguments

n

the number of first n entries from the sequence.

gmp

a logical; TRUE to use large number representation, FALSE otherwise.

Value

a vector of length n containing first entries from the sequence.

Examples

## generate first 30 Bell numbers and print
print(Bell(30))


Zseq documentation built on Sept. 7, 2022, 5:06 p.m.