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.

Showing 1-3 of 3 results.

A333683 The number of steps for a knight to be trapped when moving on a spirally numbered hexagonal board to the lowest available unvisited cell and starting at cell n.

Original entry on oeis.org

83965, 738091, 277614, 252431, 731818, 731818, 765367, 622644, 252431, 252431, 1409949, 1720441, 512861, 925161, 251386, 1967478, 24228, 759058, 738091, 765367, 813609, 251386, 427289, 3220511, 48709, 151878, 231983, 121515, 113147, 894298, 158680, 815439, 1452850, 231479
Offset: 1

Views

Author

Scott R. Shannon, Apr 02 2020

Keywords

Comments

For a knight moving on a spirally numbered hexagonal board to the lowest available unvisited cell, see A327131, a(n) gives the number of steps before the knight is trapped when the knight starts on the cell numbered n.
See A327131 for the allowed knight moves, a diagram of the hexagonal board, and an illustration of the knight's path for n = 1.
For the first 100000 terms the longest path before the knight is trapped is for starting starting cell 81479 where it is trapped after 8125572 steps, the final cell being 8085793. In the same range the shortest path before being trapped is for starting cell 1036 where it is trapped after 1603 steps, the final cell being 1267. See the image in the links. This is likely the shortest path to being trapped for all starting cells.

Examples

			The knight starting on cell 1 becomes trapped after 83965 steps, see A327131.
		

Crossrefs

Cf. A333684 (trapped cell number), A327131, A309918, A328894, A306291.

A326931 a(n) is the end square spiral number for a knight starting on square n moving on a board with squares numbered with the square of their distance from the 0-square origin and where the knight moves to the smallest numbered unvisited square; the smallest spiral number ordering is used if the distances are equal.

Original entry on oeis.org

25984, 51159, 8224, 31440, 8224, 31440, 8224, 110081, 131178, 92879, 69289, 59225, 62391, 10042, 66686, 73825, 36212, 123343, 158628, 28616, 74166, 98142, 59386, 50028, 42525, 15828, 7092, 27981, 57726, 27313, 52761, 15586, 47169, 17233, 152620, 73042, 76303, 83957, 59892, 9567
Offset: 1

Views

Author

Scott R. Shannon, Oct 22 2019

Keywords

Comments

This is the end square, using its spiral numbered value, for a knight starting on a square with spiral number n for a knight with step rules given in A326922. We use the spiral number to define the start and end square, as opposed to its square distance from the 0-square origin which predominantly determines the knight's path in A326922, as it is a unique value for each square on the board.
The largest end square spiral value for starting squares n from 1 to 200000 is a(72000) = 574108, which has a square distance number of 149725, which was also the largest found value. The largest number of steps before being trapped is for start square 103623, which is trapped after 483425 steps.
The smallest end square spiral value is a(1284) = 1143, which has a square distance number of 298. The smallest number of steps before being trapped is for start square 633, which is trapped after 1127 steps on square 1206. This has a square distance number of 293, the smallest value found.

Examples

			a(1) = 25984. See A326922.
		

Crossrefs

A333684 The cell number where a knight is trapped when moving on a spirally numbered hexagonal board to the lowest available unvisited cell and starting at cell n.

Original entry on oeis.org

72085, 706243, 270402, 236090, 716518, 716518, 730674, 657313, 236090, 236090, 1318101, 1634797, 482448, 901595, 237177, 1946730, 21429, 726318, 706243, 730674, 793200, 237177, 405933, 3095967, 51035, 159266, 218715, 106443, 101767, 927137, 148315, 786512, 1495770
Offset: 1

Views

Author

Scott R. Shannon, Apr 02 2020

Keywords

Comments

For a knight moving on a spirally numbered hexagonal board to the lowest available unvisited cell, see A327131, a(n) gives the cell number where the knight is trapped when the knight starts on the cell numbered n.
See A327131 for the allowed knight moves, a diagram of the hexagonal board, and an illustration of the knight's path for n = 1.
For the first 100000 terms the largest cell number where the knight is trapped is for starting starting cell 81479 where the final cell has number 8085793, being reached after 8125572 steps. In the same range the smallest cell number where the night is trapped is for starting cell 1036 where the final cell has number 1267, being reached after 1603 steps. See A333683 for an image of this path.

Examples

			The knight starting on cell 1 becomes trapped on cell 72085 after 83965 steps, see A327131.
		

Crossrefs

Cf. A333683 (number of steps), A327131, A309918, A328894, A306291.
Showing 1-3 of 3 results.