A329520 a(n) is the number of completed steps before being trapped for a knight moving on a square-spiral numbered board where the knight moves to an unvisited square with the lowest spiral number and with n or fewer visited neighbors. It only moves to squares with n+1 or more visited neighbors when no other squares are available, and if two or more such squares are present it chooses the square with the fewest visited neighbors, then the square with the lowest spiral number if still tied.
1151, 225, 1866, 513316, 11171, 3935788, 23014, 2015
Offset: 1
Examples
a(6) = 3935788. See A329519. a(7) = 23014. See A329518. a(8) = 2015. See A316667. See A316667 for the spiral board numbering.
Links
- Scott R. Shannon, The knight's path for n = 1. The knight is trapped after 1151 steps. In this and other images the first square is marked in green, the final square in red, and the eight blocking squares in blue.
- Scott R. Shannon, The knight's path for n = 2. The knight is trapped after only 225 steps. The start square acts as one of the blocking squares.
- Scott R. Shannon, The knight's path for n = 4. The knight is trapped after 513316 steps. In this image the cyan points indicate where the knight would have gone to a square with eight neighbors, and thus been trapped, if these were not rejected by the n = 4 cutoff. The yellow colored points indicate similar but for combined neighbor counts of five, six and seven neighbors. The final square is in the cusp of the outer edge near the 7:30 clock position.
- N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019).
Comments