A046760: Extravagant numbers

Description Usage Arguments Value See Also Examples

Description

Under OEIS A046760, an Extravagant number has less digits than the number of digits in its prime factorization including exponents. First 6 Extravagant numbers are 4, 6, 8, 9, 12, 18. Though it doesn't matter which base we use, here we adopt only a base of 10.

Usage

1
Extravagant(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.

See Also

Frugal, Equidigital

Examples

1
2
## generate first 20 Extravagant numbers
print(Extravagant(20))

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