OFFSET
1,1
COMMENTS
The smallest n values where a(n) is odd are 1, 2, 24, and 95166.
For n > 22, the smallest n values where a(n) is deficient are 95163, 95165, and 95166.
LINKS
Hoang Nguyen, Table of n, a(n) for n = 1..10000
EXAMPLE
3's abundancy is (1+3)/3 = 4/3, which is 2/3 away from 2.
9's abundancy is (1+3+9)/9 = 13/9, which is 5/9 (< 2/3) away from 2.
10's abundancy is (1+2+5+10)/10 = 9/5, which is 1/5 (< 5/9) away from 2.
PROG
(Julia)
using Primes
function a(n)
min = 2
i = 1
num = 0
while i <= n
num += 1
diff = abs(sum(divisors(num)) // num - 2)
if diff < min && diff != 0 && !ispow2(num)
min = diff
print("$num, ")
i += 1
end
end
end
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Hoang Nguyen, Jun 16 2026
STATUS
approved
