def is_abundant(n): """ Returns True if n is an abundant integer. That is, the sum of all the proper divisors of n is greater than n itself. """ return sum(proper_divisors(n)) > n
def d(n): """ Returns the sum of all proper divisors of n. """ return sum(proper_divisors(n))