login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A309020 Expansion of x * Product_{k>=0} (1 + x^(2^k) + x^(2^(k+1)) - x^(2^(k+2))). 3
0, 1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 3, 2, 2, 2, 1, 1, 0, 1, 2, 2, 4, 3, 3, 2, 1, 2, 2, 2, 1, 1, 0, 1, 0, 0, 0, 1, 3, 2, 3, 2, 4, 4, 5, 3, 2, 3, 2, 2, 0, 1, 1, 2, 3, 2, 2, 2, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, -1, 0, 0, 0, 1, 1, 4, 3, 4, 2, 2, 3, 3, 2, 3, 4, 6, 4, 5, 5, 4, 3, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
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
Sequence in context: A073812 A009223 A110244 * A278495 A254623 A055188
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Jul 06 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 24 20:57 EDT 2024. Contains 375417 sequences. (Running on oeis4.)