OFFSET
0,4
FORMULA
a(0) = 0, a(1) = 1; a(2*n) = a(n), a(2*n+1) = a(n) + a(n+1) - a(n-1).
MATHEMATICA
nmax = 90; CoefficientList[Series[x Product[(1 + x^(2^k) + x^(2^(k + 1)) - x^(2^(k + 2))), {k, 0, Floor[Log[2, nmax]] + 1}], {x, 0, nmax}], x]
a[0] = 0; a[1] = 1; a[n_] := If[EvenQ[n], a[n/2], a[(n - 1)/2] + a[(n + 1)/2] - a[(n - 3)/2]]; Table[a[n], {n, 0, 90}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Jul 06 2019
STATUS
approved