OFFSET
0,5
COMMENTS
A036799 gives the positions of zeros in this sequence.
Between two zeros, the graph of the sequence looks like a Takagi (or blancmange) curve.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Wikipedia, Blancmange curve
FORMULA
a(n) = Sum_{i=0..n-1} (-1)^A076478(i) for any n>=0.
MATHEMATICA
Join[{0}, Flatten[Array[Accumulate[Flatten[Tuples[{1, -1}, #]]]&, 5]]] (* Paolo Xausa, Dec 08 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 03 2016
STATUS
approved