A000110: Bell numbers

Description Usage Arguments Value Examples

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

1
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

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

kisungyou/Zseq documentation built on Feb. 4, 2018, 12:02 a.m.