A362956 a(n) is the y-coordinate of the n-th point in a square spiral mapped to a square grid rotated by Pi/4 using the distance-limited strip bijection described in A307110.
0, 0, 1, 1, 0, 0, -1, -1, 0, 1, 1, 2, 3, 2, 2, 1, 0, -1, -1, -2, -3, -2, -2, -1, 0, 1, 1, 2, 3, 3, 4, 4, 3, 2, 2, 1, 0, -1, -1, -2, -3, -3, -4, -4, -3, -2, -2, -1, 0, 1, 2, 2, 3, 4, 4, 5, 6, 5, 4, 3, 3, 2, 1, 1, 0, -1, -2, -2, -3, -4, -4, -5, -6, -5, -4, -3, -3, -2, -1, -1, 0, 0
Offset: 0
Keywords
Links
- Hugo Pfoertner, Table of n, a(n) for n = 0..3000
- Hugo Pfoertner, Plot of mapped spiral, using Plot 2.
Programs
-
PARI
\\ for functions ax, ay, p see A362955 for (k=0, 81, print1 (p(ax(k),ay(k))[2]", "))