OFFSET
1,4
COMMENTS
The first term a(1) = 1 lies at the (0,0) origin while all other terms lie on integer coordinates.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
Scott R. Shannon, Image of the first 10000 terms on the square spiral. The values are scaled across the spectrum from red to violet to show their relative size. Zoom in to see the numbers.
Scott R. Shannon, Image highlighting the 1 valued terms in the first 10000 terms on the square spiral. Zoom in to see the numbers.
EXAMPLE
a(4) = 2 as a(1) = a(2) = a(3) = 1 all lie on the circumference of a circle with radius 1/sqrt(2) centered at (1/2,1/2), assuming a counter-clockwise spiral, so a(4) cannot be 1.
a(12) = 3 as a(2) = a(3) = a(11) = 1 all lie on the circumference of a circle with radius 1/sqrt(2) centered at (3/2,1/2), so a(12) cannot be 1, while a(4) = a(8) = a(10) = 2 all lie on the circumference of a circle with radius sqrt(2) centered at (1,0), so a(12) cannot be 2.
a(22) = 4 as a(1) = a(2) = a(7) = 1 all lie on the circumference of a circle with radius sqrt(10)/2 centered at (1/2,-3/2), so a(22) cannot be 1, a(6) = a(19) = a(21) = 2 all lie on the circumference of a circle with radius sqrt(5)/2 centered at (-3/2,-1), so a(22) cannot be 2, while a(12) = a(16) = a(20) = 3 all lie on the circumference of a circle with radius sqrt(5) centered at (0,0), so a(22) cannot be 3.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Mar 21 2023
STATUS
approved