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.

A337838 Permutation of the natural numbers formed by numbering an infinite square grid by a counterclockwise triangular spiral and visiting them by a counterclockwise stair step spiral.

Original entry on oeis.org

1, 2, 13, 3, 14, 4, 5, 19, 20, 6, 7, 8, 24, 25, 9, 10, 12, 31, 60, 32, 61, 33, 62, 34, 63, 35, 15, 17, 18, 41, 42, 74, 75, 43, 44, 21, 22, 23, 48, 49, 83, 84, 50, 51, 26, 27, 11, 30, 59, 96, 143, 97, 144, 98, 145, 99, 146, 100, 147, 101, 148, 102, 64, 36, 16
Offset: 1

Views

Author

Mohammed Yaseen, Sep 25 2020

Keywords

Examples

			The path begins:
.
  16
.
  17  15  34
.
  18   4--14  33
       |   |
  19---5   3--13  32
   |           |       |
  20---6   1---2  12--31
       |           |
  21   7---8   9--10  11  30
           |   |
  22  23  24--25  26  27  28  29
.
		

Crossrefs

Same type of visit on other types of spirals: A334619, A337822.
Square spiral visit on the same spiral board: A217010.