OFFSET
0,8
COMMENTS
From Peter Munn, Jul 22 2021: (Start)
The points of the spiral are equally the points of a hexagonal lattice, the points of an isometric (triangular) grid and the center points of the cells of a honeycomb (regular hexagonal tiling or grid). The coordinate system can be described using 3 axes that pass through spiral point 0 and one of points 1, 2 or 3. Along each axis, one of the coordinates is 0.
a(n) is the signed distance from spiral point n to the axis that passes through point 2. The distance is measured along either of the lines through point n that are parallel to one of the other 2 axes and the sign is such that point 1 has positive distance.
This coordinate can be paired with either of the other coordinates to form oblique coordinates as described in A307012. Alternatively, all 3 coordinates can be used together, symmetrically, as described in A345978.
There is a negated variant of the 3rd coordinate, which is the conventional sense of this coordinate for specifying (with the 2nd coordinate) the Eisenstein integers that can be the points of the spiral when it is embedded in the complex plane. See A307013.
(End)
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 0..10034
Margherita Barile, Oblique Coordinates, entry in Eric Weisstein's World of Mathematics.
HandWiki, Hexagonal Lattice.
Peter Munn, Illustration of signed distance of spiral points.
Hugo Pfoertner, Illustration of A307012 vs A307011, spiral.
Hugo Pfoertner, Illustration of A345978 vs A307011, spiral.
Wikipedia, Signed distance function.
PROG
(PARI) r=-1; d=-1; print1(m=0, ", "); for(k=0, 8, for(j=1, r, print1(s, ", ")); if(k%2, , m++; r++); for(j=-m, m+1, if(d*j>=-m, print1(s=d*j, ", "))); d=-d)
CROSSREFS
Positions on the spiral that correspond to Eisenstein primes: A345435.
KEYWORD
sign,look
AUTHOR
Hugo Pfoertner, Mar 19 2019
EXTENSIONS
Name revised by Peter Munn, Jul 08 2021
STATUS
approved