Perfect, abundant, deficient, amicable and Carmichael numbers
Source:R/ntheory.R
mersenne_prime_exponent.Rdabundance(n) is sigma(n) - 2n. is_perfect(), is_abundant() and
is_deficient() test its sign; is_amicable(m, n) tests an amicable pair
and is_carmichael(n) a Carmichael number. find_carmichael_numbers_in_range(x, y)
lists the Carmichael numbers in [x, y) and find_first_n_carmichaels(n) the
first n. mersenne_prime_exponent(nth) is the exponent of the nth
Mersenne prime, from the list of the 52 known ones.