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.

A334234 a(n) is the Y-coordinate of the point at n steps forward from the origin along the H-order curve defined in A334232; sequence A334233 gives X-coordinates.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Apr 20 2020

Keywords

Examples

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

Crossrefs

Programs

  • PARI
    See Links section.

Formula

A334232(a(n), A334233(n)) = n.