OFFSET
1,4
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 as the sum of the first divisor of 1 is 1 <= 1 and 1 has no more divisors.
a(6) = 3 as the sum of the first three divisors is 1+2+3 <= 6 but the sum of the first four divisors is 1 + 2 + 3 + 6 = 12 > 6.
PROG
(PARI) A377247(n) = {my(d = divisors(n), t = 0); for(i = 1, #d, t += d[i]; if(t > n, return(i-1))); 1}
CROSSREFS
KEYWORD
nonn,new
AUTHOR
David A. Corneth, Oct 21 2024
STATUS
approved