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!)
A345008 a(0) = 1; a(4*n) = a(n) - a(n-1), a(4*n+1) = a(4*n+2) = a(4*n+3) = a(n). 1
1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -2, -1, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -1, 0, 0, 0, 1, 1, 1, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,65
LINKS
FORMULA
G.f. A(x) satisfies: A(x) = (1 + x + x^2 + x^3 - x^4) * A(x^4).
G.f.: Product_{k>=0} (1 + x^(4^k) + x^(2*4^k) + x^(3*4^k) - x^(4^(k+1))).
MATHEMATICA
a[0] = 1; a[n_] := Switch[Mod[n, 4], 0, a[n/4] - a[(n - 4)/4], 1, a[(n - 1)/4], 2, a[(n - 2)/4], 3, a[(n - 3)/4]]; Table[a[n], {n, 0, 105}]
nmax = 105; A[_] = 1; Do[A[x_] = (1 + x + x^2 + x^3 - x^4) A[x^4] + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
nmax = 105; CoefficientList[Series[Product[(1 + x^(4^k) + x^(2 4^k) + x^(3 4^k) - x^(4^(k + 1))), {k, 0, Floor[Log[4, nmax]] + 1}], {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A213620 A331734 A105794 * A316866 A277007 A160380
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Jun 05 2021
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 April 24 10:49 EDT 2024. Contains 371935 sequences. (Running on oeis4.)