OFFSET
0,6
COMMENTS
This sequence has connections with A296062 and the Takagi (or blancmange) curve:
- for any real number x,
- let s(x) = min(frac(x), 1-frac(x)) (this is the building block of the Takagi curve),
- let t(x) = min(1/3, s(x)),
- let f(x) = Sum_{k >= 0} t(x * 3^k) / 3^k,
approaches the curve x -> f(x)*3^k for x in the range 0..1.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..9841
Rémy Sigrist, Scatterplot of the sequence for n = 0..A003462(11)
Rémy Sigrist, Representation of f in the range 0..1
Rémy Sigrist, Successive approximations of f
Wikipedia, Blancmange curve
FORMULA
PROG
(PARI) s=0; for (n=1, 73, print1 (s", "); m=n; while (m>1, s-=d=centerlift(Mod(m, 3)); m=(m-d)\3))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 27 2021
STATUS
approved