OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = A276430(n,0).
G.f.: g(x) = Product_{i>=1} (1-x^{h(i)})/(1-x^i), where h(i) = 2^i.
EXAMPLE
a(6) = 5, counting [1,1,1,1,1,1], [1,1,1,3], [1,5], [3,3], [6].
MAPLE
h:= proc(i) options operator, arrow: 2^i end proc: g := product((1-x^h(i))/(1-x^i), i = 1 .. 55): gser := series(g, x = 0, 55): seq(coeff(gser, x, n), n = 0 .. 50);
# second Maple program:
with(numtheory):
a:= proc(n) option remember; `if`(n=0, 1, add(add(`if`(d>1 and
d=2^ilog2(d), 0, a(n-j)*d), d=divisors(j)), j=1..n)/n)
end:
seq(a(n), n=0..55); # Alois P. Heinz, Sep 20 2016
MATHEMATICA
a[n_] := a[n] = If[n == 0, 1, Sum[Sum[If[d>1 && d == 2^Floor[Log[2, d]], 0, a[n-j]*d], {d, Divisors[j]}], {j, 1, n}]/n]; Table[a[n], {n, 0, 55}] (* Jean-François Alcover, Dec 21 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Sep 19 2016
STATUS
approved