login
A397394
a(n) is the x-coordinate of a knight after moving n steps according to the rules defined in A397392, with the last tiebreaking rule modified so that the colexicographically largest point is chosen instead of the lexicographically largest point.
6
0, 1, -1, 1, 0, -1, 1, 2, 1, 3, 1, 0, -1, -2, -1, -3, -2, -1, -3, -2, -4, -2, -1, -3, -4, -5, -3, -1, 1, 2, 3, 1, 2, 3, 4, 5, 3, 1, 2, 3, 2, 0, -2, -3, -2, -1, -3, -4, -5, -4, -2, 0, 2, 4, 3, 2, 0, -2, -4, -5, -6, -4, -2, -1, -3, -5, -4, -3, -1, -3, -4, -5, -6
OFFSET
0,8
COMMENTS
The last tiebreaking rule, which chooses the colexicographically largest point, seems never to come into play, except for the very first step.
Backtracking (discarding a candidate move because it inevitably leads to a dead end) is needed for the first time in the 359th step, in which the step to (-1,-8) is discarded because all its neighbors are already visited. Instead the knight moves to (-4,-11). (-1,-8) is also the position closest to the origin of the positions that are never visited. Among the first 1000000 steps, backtracking is needed 125 times. The majority of the discarded steps are steps to boundary points (points with |x|==1 and y<0).
The first time the 3rd differences need to be compared is at the 22nd step. Among the first 1000000 steps, differences of order higher than 3 never need to be compared; 3rd differences are needed 5 times.
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 0..10000
Pontus von Brömssen, Plot of path, using Plot2.
CROSSREFS
Cf. A397390, A397392, A397395 (y-coordinates), A397396, A397398.
Sequence in context: A117778 A072127 A186976 * A160550 A172038 A331363
KEYWORD
sign
AUTHOR
STATUS
approved