OFFSET
1,2
COMMENTS
Original name of this sequence: a(n) is the smallest positive integer such that (sum{k|n, 1<=k<=a(n)} k) is >= n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
EXAMPLE
The divisors of 12 are 1,2,3,4,6,12. 1+2+3+4 = 10, which is smaller than 12; but 1+2+3+4+6 = 16, which is >= 12. So a(12) = 6.
MATHEMATICA
f[n_] := Block[{k = 1, d = Divisors[n]}, While[Sum[d[[i]], {i, k}] < n, k++ ]; d[[k]]]; Table[f[n], {n, 76}] (* Ray Chandler, Dec 06 2006 *)
PROG
(PARI) A125746(n) = { my(k=0, s=0); fordiv(n, d, k++; s += d; if(s>=n, return(d))); }; \\ Antti Karttunen, Mar 21 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 05 2006
EXTENSIONS
Extended by Ray Chandler, Dec 06 2006
Name changed by Antti Karttunen, Mar 21 2018
STATUS
approved