OFFSET
0,2
COMMENTS
Each n occurs A045778(n) times in the sequence.
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..8192
FORMULA
G.f.: Product_{k>=0} (1 + (k + 2) * x^(2^k)). - Ilya Gutkovskiy, Aug 19 2019
MATHEMATICA
f[0] := 1; f[n_] := If[(b = n - 2^(k = Floor[Log2[n]])) == 0, k + 2, (k + 2)*f[b]]; Table[f[n], {n, 0, 61}] (* Ivan Neretin, May 09 2015 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 25 2006
STATUS
approved