|
|
A307016
|
|
List coordinates (x,y) of the points in an hexagonal grid, sorted first by radial coordinate r and in case of ties, by polar angle 0 <= phi < 2*Pi in a polar coordinate system. Sequence gives the second coordinate in a barycentric coordinate system.
|
|
7
|
|
|
0, 0, 1, 1, 0, -1, -1, 1, 2, 1, -1, -2, -1, 0, 2, 2, 0, -2, -2, 1, 2, 3, 3, 2, 1, -1, -2, -3, -3, -2, -1, 0, 3, 3, 0, -3, -3, 2, 4, 2, -2, -4, -2, 1, 3, 4, 4, 3, 1, -1, -3, -4, -4, -3, -1, 0, 4, 4, 0, -4, -4, 2, 3, 5, 5, 3, 2, -2, -3, -5, -5, -3, -2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,9
|
|
COMMENTS
|
Cartesian coordinates (x,y) of the grid points are converted to barycentric coordinates (i,j,k) by i = x - y/sqrt(3), j = 2*y/sqrt(3), k = x + y/sqrt(3). The sequence gives j. i is given in A307014, k is given in A307017.
|
|
LINKS
|
|
|
PROG
|
(PARI) \\ See Link
\\ To create the data of this sequence load program from file and call
a307014_16(5, 6) \\ Hugo Pfoertner, Nov 07 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|