An abundant number is an integer n whose sum of its positive proper divisors—or the sum of its divisors excluding itself—exceeds n. For example, 12 is abundant because 1+2+3+4+6 = 16.
An e-abundant number is an integer n whose sum of its positive proper e-divisors exceeds n. For example, 1764 is e-abundant because its sum of proper e-divisors is 2268.
Write a function that returns the closest e-abundant numbers below and above the input. If the input is e-abundant, return only that number. If no e-abundant numbers are smaller than the input, then return NaN.

Solution Stats

5 Solutions

4 Solvers

Last Solution submitted on Apr 21, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...