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.

A334222 a(n) is the X-coordinate of the point at n steps backward from the origin along the space filling curve U defined in A334188; sequence A334223 gives Y-coordinates.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Apr 19 2020

Keywords

Examples

			The "backward" branch of curve U starting from the origin is as follows:
     |                                  |
    7|  -15..-16  -21..-22  -31..-32  -37
     |    |    |    |    |    |    |    |
    6|  -14  -17  -20  -23  -30  -33  -36
     |    |    |    |    |    |    |    |
    5|  -13  -18..-19  -24  -29  -34..-35
     |    |              |    |
    4|  -12..-11..-10  -25  -28
     |              |    |    |
    3|   -3...-4   -9  -26..-27
     |    |    |    |
    2|   -2   -5   -8
     |    |    |    |
    1|   -1   -6...-7
     |    |
    0|    0
  ---+-----------------------------------
  y/x|    0    1    2    3    4    5    6
- hence a(4) = a(5) = a(6) = a(11) = a(16) = a(17) = a(18) = 1.
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

A334188(A334223(n), a(n)) = -n.