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.

A335381 a(n) is the Y-coordinate of the n-th point of the Kochawave curve; sequence A335380 gives X-coordinates.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 4, 2, 3, 2, 0, 1, 0, 0, 1, 0, 0, 1, 4, 2, 3, 6, 12, 9, 12, 10, 7, 8, 6, 7, 10, 8, 9, 8, 6, 7, 6, 4, 1, 2, 0, 1, 2, 2, 3, 2, 0, 1, 0, 0, 1, 0, 0, 1, 4, 2, 3, 2, 0, 1, 0, 0, 1, 0, 0, 1, 4, 2, 3, 6, 12, 9, 12, 10, 7, 8, 6, 7, 10, 8, 9, 12, 18
Offset: 0

Views

Author

Rémy Sigrist, Jun 04 2020

Keywords

Comments

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

Examples

			The Kochawave curve starts (on a hexagonal lattice) as follows:
    .       .       .       .       .       .       +       .       .       .
                                                   /|6
                                                  / |
                                                 /  |
        .       .       .       .       .       .   |   .      .+       .       .
                                               /    |       .../ 8
                                              /     |    ...  /
                                             /      | ...    /
    .       .       .       .       .       .       +.      +       .       .
                                           /         7      |9
                                          /                 |
                                         /                  |
        .       .      .+       .      .+       .       +11 |   .      .+       .
                    .../ 2          ...  5             / \  |       .../ 14
                 ...  /          ...                  /   \ |    ...  /
              ...    /        ...                    /     \| ...    /
    +-------+.      +-------+.      .       .       +-------+.      +-------+
     0       1       3       4                       12   13 10      15      16
- hence a(2) = a(5) = a(11) = a(14) = 1.
		

Crossrefs

Cf. A335380.

Programs

  • PARI
    See Links section.

Formula

a(4^k) = 0 for any k >= 0.