OFFSET
0,3
COMMENTS
a(2^m) = 2^m, for all nonnegative integers m.
a(p * 2^m) = a(p * 2^(m-1)) + 2^(m-1) for odd prime p and m > 0. - David A. Corneth, Jul 30 2015
LINKS
David A. Corneth, Table of n, a(n) for n = 0..9999
EXAMPLE
The positive divisors of 12 are 1,2,3,4,6,12. These divisors, divided by 2 and rounded down, are 0,1,1,2,3,6. So a(12) = a(0) + a(1) + a(1) + a(2) + a(3) + a(6) = 1 + 1 + 1 + 2 + 2 + 5 = 12.
MATHEMATICA
a = {1}; For[n = 1, n < 70, n++, s = 0; For[j = 1, j < Length[Divisors[n]] + 1, j++, s = s + a[[Floor[Divisors[n][[j]]/2] + 1]]]; AppendTo[a, s]]; a (* Stefan Steinerberger, Nov 20 2007 *)
PROG
(PARI) a(n) = {my(v=vector(n+1)); v[1] = 1; for(i=2, n+1, v[i]=sumdiv(i - 1, X, v[X\2+1])); v} \\ David A. Corneth, Jul 31 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 17 2007
EXTENSIONS
More terms from Stefan Steinerberger, Nov 20 2007
STATUS
approved