OFFSET
0,3
COMMENTS
a(n+1) = a(n) + A005590(n+1).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
a(2^n) = n + 1.
G.f.: (x/(1 - x))*Product_{k>=0} (1 + x^(2^k) - x^(2^(k+1))). - Ilya Gutkovskiy, Feb 27 2017
MATHEMATICA
a[0] = 0; a[1] = 1; a[n_] := a[n] = If[OddQ@ n, a[(n - 1)/2 + 1] - a[(n - 1)/2], a[n/2]]; Accumulate@ Table[a@ n, {n, 0, 104}] (* after Jean-François Alcover at A005590, or *)
Table[SeriesCoefficient[(x/(1 - x)) Product[(1 + x^(2^k) - x^(2^(k + 1))), {k, 0, n}], {x, 0, n}], {n, 0, 70}] (* Michael De Vlieger, Feb 27 2017 *)
PROG
(Haskell)
a182093 n = a182093_list !! n
a182093_list = scanl1 (+) a005590_list
CROSSREFS
KEYWORD
sign,look
AUTHOR
Reinhard Zumkeller, Apr 11 2012
STATUS
approved