A000217: Triangular numbers

TriangularR Documentation

Triangular numbers

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

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

## generate first 20 Triangular numbers
print(Triangular(20))


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