Path for A309382

Define a function "knightMoves(x,y)" that has an output of possible move locations in terms of an array [[x1,y1],[x2,y2]...] then press graph to see the cordesponding path of the knight on the Ulam Sprial. Use size=Value; and steps=Value; to specify the steps the knight takes and the size of the board.

 

Series of Points Visited

1 10 3 8 5 2 13 28 25 50 27 12 9 4 7 18 15 6 17 34 59 14 11 24 49 52 29 32 55 58 89 54 31 88 53 26 79 120 83 122 173 126 87 56 91 130 177 232 295 228 225 290 227 172 125 82 51 80 121 124 85 128 175 230 171 224 289 170 123 84 81 166 223 288 169 226 293 364 361 442 363 292 229 174 127 178 131 134 57 30