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.

A359572 Squares visited by a princess moving on a spirally numbered board, always to the lowest available unvisited square.

Original entry on oeis.org

1, 3, 6, 4, 2, 5, 8, 11, 9, 12, 14, 20, 22, 19, 7, 13, 21, 31, 43, 57, 30, 32, 15, 18, 16, 10, 23, 29, 33, 41, 44, 42, 45, 24, 27, 25, 17, 34, 28, 46, 40, 60, 35, 38, 36, 26, 47, 39, 61, 53, 77, 48, 51, 49, 37, 62, 52, 78, 68, 96, 54, 76, 70, 94, 56, 58, 55, 59, 71, 74, 72, 75, 89, 92, 90, 93, 109, 73, 91, 111, 133, 157, 110
Offset: 1

Views

Author

Neal Gersh Tolunsky, Jan 06 2023

Keywords

Comments

A princess can move like a bishop or a knight.

Examples

			Board is numbered with the square spiral:
.
  17--16--15--14--13
   |               |
  18   5---4---3  12   .
   |   |       |   |
  19   6   1---2  11   .
   |   |           |
  20   7---8---9--10   .
   |
  21--22--23--24--25--26
		

Crossrefs