A000217: Triangular numbers

Description Usage Arguments Value Examples

Description

Under OEIS A000217, a Triangular number counts objects arranged in an equilateral triangle. First 6 Triangular numbers are 0, 1, 3, 6, 10, 15.

Usage

1
Triangular(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 20 Triangular numbers
print(Triangular(20))

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