OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
N. J. A. Sloane, Transforms
FORMULA
Euler Transform of characteristic function of A000069.
MAPLE
h:= proc(n) option remember; `if`(n<1, 0,
`if`(add(i, i=Bits[Split](n))::odd, n, h(n-1)))
end:
b:= proc(n, i) option remember; `if`(n=0 or i=1, 1,
b(n, h(i-1))+b(n-i, h(min(n-i, i))))
end:
a:= n-> b(n, h(n)):
seq(a(n), n=0..100); # Alois P. Heinz, Sep 08 2019
MATHEMATICA
f[n_] := f[n] = DigitCount[n, 2][[1]] // OddQ // Boole;
etr[p_] := Module[{b}, b[n_] := b[n] = If[n == 0, 1, Sum[Sum[d p[d], {d, Divisors[j]}] b[n - j], {j, 1, n}]/n]; b];
a[n_] := etr[f][n];
a /@ Range[0, 100] (* Jean-François Alcover, Nov 23 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, Jan 31 2002
EXTENSIONS
a(0) corrected by Alois P. Heinz, Sep 08 2019
STATUS
approved