A330782 The records for distance squared for step lengths between adjacent composite numbers in A332767, the visited composite numbers for a walk stepping to the closest unvisited composite number on the 2D square (Ulam) spiral.
1, 2, 8, 32, 40, 68, 98, 148, 162, 356, 450
Offset: 1
Examples
The below table shows the details of the record step lengths of this sequence for the first 1 million steps. The coordinate is relative to the starting 1-square. -------------------------------------------------------------------------------- a(n) | A332767 step # | Start value & coord | End value & coord | -------------------------------------------------------------------------------- 1 | 1 | 1 (0,0) | 4 (0,1) | 2 | 6 | 32 (2,3) | 30 (3,2) | 8 | 154 | 74 (-3,-4) | 158 (-5,-6) | 32 | 4501 | 5526 (-37,-12) | 6782 (-41,-16) | 40 | 65877 | 48150 (110,79) | 53558 (116,81) | 68 | 91787 | 126154 (178,-49) | 137780 (186,-47) | 98 | 125472 | 145762 (-28,191) | 156654 (-35,198) | 148 | 142733 | 105316 (-147,-162) | 102746 (-135,-160) | 162 | 142741 | 92744 (-129,-152) | 82106 (-120,-143) | 356 | 142869 | 67818 (-130,-87) | 57792 (-120,-71) | 450 | 149464 | 64666 (-127,-22) | 67774 (-130,-43) |
Links
- Wikipedia, Ulam Spiral.
Comments