OFFSET
1,3
LINKS
FORMULA
a(n) = [x^n] Sum_{k>=1} (2*k - 1)^n*x^(2*k-1)/(1 - x^(2*k-1)).
a(2^k) = 1.
MAPLE
f:= proc(n) local t, d;
t:= n/2^padic:-ordp(n, 2);
add(d^n, d = numtheory:-divisors(t));
end proc:
map(f, [$1..30]); # Robert Israel, Sep 27 2017
MATHEMATICA
Rest[Table[SeriesCoefficient[Sum[(2 k - 1)^n x^(2 k - 1)/(1 - x^(2 k - 1)), {k, 1, n}], {x, 0, n}], {n, 0, 22}]]
f[n_] := Plus @@ (Select[Divisors[n], OddQ]^n); Array[f, 22] (* Robert G. Wilson v, Sep 26 2017 *)
PROG
(PARI) a(n) = sumdiv(n, d, if (d%2, d^n)); \\ Michel Marcus, Sep 08 2018
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Ilya Gutkovskiy, Sep 26 2017
STATUS
approved