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.

A334484 a(n) is the Y-coordinate of the n-th point of the Sierpinski arrowhead curve; sequence A334483 gives X-coordinates.

Original entry on oeis.org

0, 0, 1, 2, 3, 3, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 2, 3, 4, 5, 5, 4, 4, 5, 6, 6, 7, 8, 9, 9, 8, 8, 9, 10, 10, 11, 12, 12, 13, 14, 15, 15, 14, 13, 12, 12, 11, 10, 10, 9, 8, 8, 9, 9, 8, 7, 6, 6, 5, 4, 4, 5, 5, 4, 3, 2, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 3, 3, 2, 1, 0, 0
Offset: 0

Views

Author

Rémy Sigrist, May 03 2020

Keywords

Comments

Coordinates are given on a hexagonal lattice with X-axis and Y-axis as follows:
Y
/
/
0 ---- X

Examples

			The Sierpinski arrowhead curve starts (on a hexagonal lattice) as follows:
                         +
                        27\
                           \
                            +
                           /26
                          /
                    +----+
                   /24   25
                  /
                 +          +----+
                23\        /20  19\
                   \      /        \
                    +----+          +
                    22   21        /18
                                  /
            +----+               +
           /4    5\             17\
          /        \               \
         +          +               +----+
         3\        /6               16  15\
           \      /                        \
            +    +          +----+          +
           /2    7\        /10  11\        /14
          /        \      /        \      /
    +----+          +----+          +----+
    0    1          8    9          12   13
- hence a(3) = a(6) = a(15) = a(16) = 2.
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

A262174(1 + A334483(n) + a(n), 1 + a(n)) = 1 + n for any n >= 0.