OFFSET
0,5
LINKS
Scott R. Shannon, Table of n, a(n) for n = 0..10000
Scott R. Shannon, Image of the first 500000 terms.
Scott R. Shannon, Image of the first 50000 terms on the square spiral. The colors are graduated across the spectrum to show their relative size. Zoom in to see the numbers.
EXAMPLE
The spiral begins:
.
.
0---9---8---8---4---5---8 :
| | :
10 6---0---5---2---4 4 10
| | | | |
0 0 2---0---1 0 5 12
| | | | | | |
10 6 0 0---0 4 7 8
| | | | | |
2 2 2---2---3---0 0 7
| | | |
7 6---4---7---0---6---8 12
| |
8--12---0--10---8--12---4---8
.
a(2) = 1 as the maximum taxicab distance between 0 = a(1) and the only previous occurrence of 0, a(0) at (0,0), is 1.
a(8) = 3 as the maximum taxicab distance between any two previous occurrences of 2 = a(7) is 3, between a(3) = 2, at (-1,1) relative to the starting square, and a(7) = 2 at (0,-1) relative to the starting square.
a(32) = 4 as the maximum taxicab distance between any two previous occurrences of 5 = a(31) is 4, between a(14) = 5, at (0,2) relative to the starting square, and a(28) = 5 at (3,1) relative to the starting square. This is the first term to differ from A366353.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Oct 08 2023
STATUS
approved