A051037: Regular numbers

RegularR Documentation

Regular numbers

Description

Under OEIS A051037, a Regular number - also known as 5-smooth - is a positive integer that even divide powers of 60, or equivalently, whose prime divisors are only 2,3, and 5. First 6 Regular numbers are 1, 2, 3, 4, 5, 6.

Usage

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


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