A359216 X-coordinates of a point moving in a counterclockwise undulating spiral in a square grid.
0, 1, 1, 0, 0, -1, -1, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 0, 0, -1, -1, -2, -2, -3, -3, -4, -4, -3, -3, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, -1, -1, -2, -2, -3, -3, -4, -4, -5, -5, -6, -6, -5, -5, -4
Offset: 0
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..10081
- Hans G. Oberlack, Counterclockwise undulating spiral in a square grid
- Rémy Sigrist, PARI program
- Index entries for sequences related to coordinates of 2D curves
Programs
-
PARI
See Links section.
Formula
a(2*n) = A329116(n). - Rémy Sigrist, Apr 01 2023
Comments