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.

A334475 a(n) is the X-coordinate of the n-th point of the space filling curve T defined in A334474; sequence A334476 gives Y-coordinates.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, May 02 2020

Keywords

Examples

			The space filling curve T starts as follows:
    5|  ...
     |   |
     |   |
    4|  16
     |   \
     |    \
    3|   5 15-14-13
     |   |\       |
     |   | \      |
    2|   4  6 11-12
     |    \  \  \
     |     \  \  \
    1|   1  3  7 10
     |   |\ |  |  |
     |   | \|  |  |
    0|   0  2  8--9
  ---+-------------
  y/x|   0  1  2  3
- hence a(2) = a(3) = a(6) = a(15) = 1.
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

A334474(A334476(n), a(n)) = n.