cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A092106 Fractal mountains in base 3.

Original entry on oeis.org

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

Views

Author

Benoit Cloitre, Mar 29 2004

Keywords

Comments

The graph of sequence presents fractal aspects.

Crossrefs

Cf. A005536 (fractal mountains in base 2).

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)))))