A000142: Factorial numbers

FactorialR Documentation

Factorial numbers

Description

Under OEIS A000142, a Factorial is the product of all positive integers smaller than or equal to the number. First 6 such numbers are 1, 1, 2, 6, 24, 120

Usage

Factorial(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 10 Factorials
print(Factorial(10))


kisungyou/Zseq documentation built on Sept. 13, 2022, 5:12 a.m.