OFFSET
1,2
COMMENTS
First differs from A126212(n) at a(25) = 1.
FORMULA
a(n) = Sum_{d|n, d<=tau(n)} d.
EXAMPLE
a(12) = 16. The sum of the divisors of 12 <= tau(12) = 6 are 1 + 2 + 3 + 4 + 6 = 16.
MATHEMATICA
Table[Sum[k(1-Ceiling[n/k]+Floor[n/k]), {k, DivisorSigma[0, n]}], {n, 100}]
PROG
(PARI) a(n) = my(t=numdiv(n)); sumdiv(n, d, if (d <=t, d)); \\ Michel Marcus, Nov 25 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Nov 24 2023
STATUS
approved