Learn R Programming

Zseq (version 0.1.1)

Abundant: Abundant numbers

Description

Under OEIS A005101, an abundant number is a number whose proper divisors sum up to the extent greater than the number itself. First 6 abundant numbers are 12, 18, 20, 24, 30, 36.

Usage

Abundant(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.

See Also

Deficient, Perfect

Examples

Run this code
# NOT RUN {
## generate first 30 Abundant numbers
first30 = Abundant(30)

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

# }

Run the code above in your browser using DataLab