A274370 Let the starting square of Langton's ant have coordinates (0, 0), with the ant looking in negative x-direction. a(n) is the y-coordinate of the ant after n moves.
0, 1, 1, 0, 0, -1, -1, 0, 0, -1, -1, -2, -2, -1, -1, 0, 0, -1, -1, -2, -2, -3, -3, -2, -2, -1, -1, -2, -2, -1, -1, -2, -2, -1, -1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 1, 1, 2
Offset: 0
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..15000
- Felix Fröhlich, Coordinates of Langton's ant.
- Wikipedia, Langton's ant.
Formula
a(n+104) = a(n) - 2 for n > 9975. - Andrey Zabolotskiy, Jul 05 2016