login
A326695
Langton's ant with three cell colors: color of the cell the ant moves to at the end of iteration n: 0 for white, 1 for black, 2 for gray.
2
0, 0, 0, 1, 0, 0, 0, 2, 1, 1, 1, 0, 1, 1, 1, 1, 2, 2, 0, 0, 2, 1, 1, 0, 2, 1, 2, 2, 0, 2, 1, 0, 0, 2, 1, 1, 2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 2, 1, 1, 1, 0, 1, 1, 1, 1, 2, 2, 0, 2, 1, 0, 2, 1, 2, 2, 0, 0, 2, 1, 1, 0, 0, 2, 1, 1, 2, 2, 0, 2, 1, 0, 2, 1, 2, 2, 0, 0
OFFSET
0,8
COMMENTS
On a white square, turn 90 degrees right, change the color to black, then move forward one unit.
On a black square, turn 90 degrees left, change the color to gray, then move forward one unit.
On a gray square, turn 180 degrees, change the color to white, then move forward one unit.
FORMULA
a(n+276) = a(n). - Rémy Sigrist, Jul 20 2019
EXAMPLE
See illustrations in Fröhlich, 2019.
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jul 19 2019
EXTENSIONS
More terms from Rémy Sigrist, Jul 20 2019
STATUS
approved