login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A325955 Langton's ant on a three-dimensional grid: number of yellow cells on the grid after n moves of the ant. 8
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 5, 5, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,17

COMMENTS

The ant starts on a completely white grid.

Order of operations: turn 90 degrees, change cell color, move forward one unit.

The rules governing the movement of the ant and the change of cell colors are shown in the following table:

Cell color at      | Direction of   | Color the cell is

start of iteration | 90-degree turn | changed to

--------------------------------------------------------

white              | right          | black

black              | left           | blue

blue               | up             | yellow

yellow             | down           | white

LINKS

Table of n, a(n) for n=0..81.

Felix Fröhlich, Illustration of iterations 0-50 of the ant

Wikipedia, Langton's ant

EXAMPLE

See illustration in links.

CROSSREFS

Cf. A255938, A325953, A325954.

Sequence in context: A125917 A071468 A274886 * A004571 A204429 A292560

Adjacent sequences:  A325952 A325953 A325954 * A325956 A325957 A325958

KEYWORD

nonn,more

AUTHOR

Felix Fröhlich, May 28 2019

EXTENSIONS

a(51)-a(81) from Charlie Neder, Jun 06 2019

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 17:40 EDT 2020. Contains 334630 sequences. (Running on oeis4.)