A307011 First coordinate in a redundant hexagonal coordinate system of the points of a counterclockwise spiral on an hexagonal grid. Second and third coordinates are given in A307012 and A345978.
0, 1, 0, -1, -1, 0, 1, 2, 2, 1, 0, -1, -2, -2, -2, -1, 0, 1, 2, 3, 3, 3, 2, 1, 0, -1, -2, -3, -3, -3, -3, -2, -1, 0, 1, 2, 3, 4, 4, 4, 4, 3, 2, 1, 0, -1, -2, -3, -4, -4, -4, -4, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5
Offset: 0
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.
Crossrefs
Programs
-
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)
Extensions
Name revised by Peter Munn, Jul 08 2021
Comments