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.

A349197 a(n) is the X-coordinate of the n-th point of the alternate terdragon curve; sequence A349198 gives Y-coordinates.

Original entry on oeis.org

0, 1, 0, 1, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 1, 1, 2, 2, 3, 2, 3, 3, 4, 4, 3, 3, 2, 2, 3, 3, 4, 3, 4, 4, 5, 5, 6, 5, 6, 6, 7, 7, 6, 6, 5, 5, 6, 6, 7, 6, 7, 7, 8, 8, 9, 8, 9, 8, 8, 7, 8, 7, 8, 7, 7, 6, 7, 6, 7, 7, 8, 8, 9, 8, 9, 8, 8, 7, 8, 7
Offset: 0

Views

Author

Rémy Sigrist, Nov 10 2021

Keywords

Comments

Coordinates are given on a hexagonal lattice with X-axis and Y-axis as follows (the Y-axis corresponds to the sixth primitive root of unity):
Y
/
/
0 ---- X
The alternate terdragon curve can be represented using an L-system.

Examples

			The alternate terdragon curve starts as follows:
                  14
                   \
                    \
         2----3,12--10,13
          \   / \   / \
           \ /   \ /   \
      0----1,4--5,8,11--9
                 / \
                /   \
               6-----7
- so a(0) = a(2) = 0,
     a(1) = a(3) = a(4) = a(12) = a(14) = 1.
		

Crossrefs

See A349040 for a similar sequence.
Cf. A349198.

Programs

  • PARI
    See Links section.

Formula

a(9^k) = 3^k for any k >= 0.
a(9*n) = 3*a(n).