login
A092106
Fractal mountains in base 3.
0
0, 1, 3, 2, 2, 3, 1, 0, 0, 1, 3, 6, 6, 7, 9, 8, 8, 9, 11, 14, 18, 19, 21, 24, 24, 25, 27, 26, 26, 27, 25, 24, 24, 21, 19, 18, 18, 19, 21, 20, 20, 21, 19, 18, 18, 19, 21, 24, 24, 25, 27, 26, 26, 27, 25, 24, 24, 21, 19, 18, 14, 11, 9, 8, 8, 9, 7, 6, 6, 3, 1, 0, 0, 1, 3, 2, 2, 3, 1, 0, 0, 1
OFFSET
0,3
COMMENTS
The graph of sequence presents fractal aspects.
FORMULA
a(n)=a(n, 3) where a(n, m)=sum(i=0, n, sum(k=0, i, (-1)^k*(floor(i/m^k)-m*floor(i/m^(k+1)))))
CROSSREFS
Cf. A005536 (fractal mountains in base 2).
Sequence in context: A217956 A105198 A133882 * A278885 A183049 A178086
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 29 2004
STATUS
approved