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.
Extravagant(n, Rmpfr = TRUE, PrecisionBits = 496)
the number of first n
entries from the sequence.
a logical; TRUE
to use large number representation, FALSE
otherwise.
a positive integer for precision bits larger than 2.
a vector of length n
containing first entries from the sequence.
# NOT RUN {
## generate first 20 Extravagant numbers
first20 = Extravagant(20)
## print without trailing 0's.
print(first20, drop0trailing = TRUE)
# }
Run the code above in your browser using DataLab