[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A343678
The square of the distance from the origin for the points visited by a knight moving on a 3D cubic lattice using the rules given in the Comments.
5
0, 5, 2, 1, 2, 1, 2, 1, 2, 9, 2, 1, 6, 9, 8, 1, 2, 9, 14, 13, 12, 13, 14, 17, 14, 17, 14, 17, 18, 17, 14, 17, 10, 13, 12, 13, 12, 21, 14, 13, 12, 13, 14, 9, 10, 9, 14, 17, 18, 19, 14, 17, 14, 21, 26, 17, 14, 19, 14, 11, 14, 17, 14, 17, 14, 17, 26, 17, 14, 11, 14, 17, 18, 17, 14, 11, 18, 29, 22, 25
OFFSET
1,2
COMMENTS
Consider a knight, starting at the origin of a 3D cubic lattice, which can only move to the 24 neighboring points one knight-leap away which have not been previously visited and where the choice of point for its next step is given by the following rules. 1. Move to the neighboring point which itself has the fewest visited neighboring points one knight-leap away from it. 2. If two or more points have the same visited neighbor count move to one of those points which is the closest to the origin. 3. If two or more points are the same distance from the origin move to one of those points which has the maximum value for the product of the absolute values of its x, y and z coordinates. 4. If two or more points have the same maximum coordinate product move to one of those points which has the maximum value for the sum of the absolute values of its x, y and z coordinates. 5. If two or more points have the same maximum coordinate sum move to the point with the smallest x-coordinate absolute value, then if equal the smallest y-coordinate absolute value, then if equal the smallest z-coordinate absolute value. 6. If still equal move to the point with the largest x-coordinate, then if equal the largest y-coordinate, then if equal the largest z-coordinate.
The sequence gives the square of the distance from the origin for the points visited by a knight following these rules.
The sequence is finite. After 811351 steps the point with coordinates (-3,2,0) is reached after which all 24 neighboring points one knight-leap away have been visited.
Rules 1 and 2 are the most important and must be taken in the given order for the knight to be trapped within 2 million steps. As in A330189 it would appear that first choosing a neighbor with the fewest visited neighbors would force the knight to move away from the origin and be less likely to be trapped. But the opposite is true as, although the knight does move away from the origin at first, its path leaves regions of unvisited points which are large enough that the knight will eventually go back into these regions and be forced toward the origin where it cannot escape. If instead for each step we first choose a point as close as possible to the origin the knight will densely cover all points close to the origin and leave very few or no unvisited regions which can later be visited. This results in a spherical region of visited points that grows further and further out from the origin which cannot readily be penetrated and so the knight is forced to continuously move outward. Switching rules 1 and 2 leads to a path of at least 250 million steps without being trapped, and it is unknown if the knight is ever trapped in this case.
Rules 3 to 6 are more arbitrary due to there being no simple equivalent in 3D for the 2D square-spiral numbering. Many orderings of these rules are possible, and one can also change the largest or smallest test condition to its opposite for the tests within these rules. Each will create a knight path with a different number of steps before being trapped. For example switching rules 3 and 4 results in the path being trapped after 1101154 steps. The rules given result in the shortest path before being trapped so far found for various combinations tested, although shorter paths probably exist. But all combinations so far tested with rule 1 and 2 as given all result in the knight eventually being trapped, indicating these are the required conditions for such paths.
See A343746 for the x,y,z coordinates of the visited points and examples of the points chosen.
See A343747 for the x coordinates of the visited points.
See A343748 for the y coordinates of the visited points.
See A343749 for the z coordinates of the visited points.
LINKS
Scott R. Shannon, 2D projection of the knight's path looking down the x-axis. In this and the other projection images the steps are graduated across the spectrum from red to violet to show the relative step ordering. The origin/first point is highlighted in white and the last point in red. The last 1000 steps are shown in a thicker line for clarity.
N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019).
CROSSREFS
Cf. A343746 (point x,y,z coordinates), A343747 (point x coordinates), A343748 (point y coordinates), A343749 (point z coordinates), A330189, A329520, A316667.
Sequence in context: A136301 A132690 A326922 * A089086 A238716 A280695
KEYWORD
nonn,fini
AUTHOR
Scott R. Shannon, Apr 25 2021
STATUS
approved