Unlimited learning, half price | 50% off
Get 50% off unlimited learning

Zseq (version 0.1.1)

Regular: 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, Rmpfr = TRUE, PrecisionBits = 496)

Arguments

n

the number of first n entries from the sequence.

Rmpfr

a logical; TRUE to use large number representation, FALSE otherwise.

PrecisionBits

a positive integer for precision bits larger than 2.

Value

a vector of length n containing first entries from the sequence.

Examples

Run this code
# NOT RUN {
## generate first 20 Regular numbers
first20 = Regular(20)

## print without trailing 0's.
print(first20, drop0trailing = TRUE)

# }

Run the code above in your browser using DataLab