A307448 List of pairs of coordinates (x,y) of the visited points for a self-avoiding walk with an incrementing step length confined to one quadrant of a 2D plane where at each step the walk must go to an unvisited point with integer coordinates as close as possible to the origin.
0, 0, 0, 1, 2, 1, 2, 4, 2, 0, 2, 5, 8, 5, 1, 5, 9, 5, 0, 5, 10, 5, 10, 16, 10, 4, 5, 16, 5, 2, 5, 17, 5, 1, 5, 18, 5, 0, 5, 19, 17, 3, 17, 24, 17, 2, 17, 25, 17, 1, 2, 21, 26, 11, 26, 38, 26, 10, 5, 30, 23, 6, 23, 37, 23, 5, 23, 38, 7, 8, 42, 8, 6, 8, 43, 8, 5, 8, 44, 8, 4, 8, 45, 8, 3, 8, 46, 8, 2, 8, 47
Offset: 1
Examples
The first 12 steps are along the x-y axial directions. But on the 13th step the point (5,16) is available and the closest possible to the origin - this is visited by stepping along the hypotenuse of a (5,12,13) Pythagorean triangle from the point (10,4).
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..66610
- Scott R. Shannon, Plot of points with x and y values less than 5000. In this and other images the pixel colors are scaled from red to violet to show the relative step at which the point was visited. Each pixel is one point. The final (498,498) point is plotted with a larger white square for clarity.
- Scott R. Shannon, Plot of all the sequence points. Due to the maximum x and y visited coordinate being much larger than the image size each pixel covers multiple points. For clarity each visited point is shown with a multi-pixel square.
- Scott R. Shannon, Plot of the walk steps. A small red dot near the origin is the final (498,498) point.
- Scott R. Shannon, Step visit to points for x<100 and y<100. This shows the step number at which each point was visited for points with x and y < 100. Best viewed using a text editor with word-wrapping turned off. The origin is marked as -1.
- Wikipedia, Pythagorean Triples.
Comments