login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A326166 Total number of ants after n iterations in male/female Langton's ant variation. 4
2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
There are male (blue) and female (pink) ants.
The rules governing the behavior of the ants are as follows:
1. On a white square, turn 90 degrees right, flip the color of the square, then move forward one unit.
2. On a black square, turn 90 degrees left, flip the color of the square, then move forward one unit.
3. If a male ant and a female ant occupy the same square, they mate and leave behind an egg.
4. When two ants of the same sex meet on a square, nothing happens.
5. Any ant can only mate with exactly one ant of the other sex each iteration.
6. The egg hatches when the square where the egg is located is no longer occupied by another ant.
7. When there is more than one egg on a square, only one of them can hatch per iteration.
8. The gender of the new ant is male if the square it hatches on is white in that iteration, female otherwise.
9. The color referred to in the previous rule is the color the square has in the first iteration where the new ant is alive.
10. The new ant always looks in north direction (upwards) at birth.
LINKS
R. J. Mathar, More illustrations
EXAMPLE
See illustration in links.
CROSSREFS
Sequence in context: A360391 A165024 A300402 * A211020 A157639 A010096
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jun 09 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 12:59 EDT 2024. Contains 371913 sequences. (Running on oeis4.)