This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A326166 #29 Nov 24 2023 12:15:35 %S A326166 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, %T A326166 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, %U A326166 6,6,6,6,6,6,6,7,7,7,7,7,7 %N A326166 Total number of ants after n iterations in male/female Langton's ant variation. %C A326166 There are male (blue) and female (pink) ants. %C A326166 The rules governing the behavior of the ants are as follows: %C A326166 1. On a white square, turn 90 degrees right, flip the color of the square, then move forward one unit. %C A326166 2. On a black square, turn 90 degrees left, flip the color of the square, then move forward one unit. %C A326166 3. If a male ant and a female ant occupy the same square, they mate and leave behind an egg. %C A326166 4. When two ants of the same sex meet on a square, nothing happens. %C A326166 5. Any ant can only mate with exactly one ant of the other sex each iteration. %C A326166 6. The egg hatches when the square where the egg is located is no longer occupied by another ant. %C A326166 7. When there is more than one egg on a square, only one of them can hatch per iteration. %C A326166 8. The gender of the new ant is male if the square it hatches on is white in that iteration, female otherwise. %C A326166 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. %C A326166 10. The new ant always looks in north direction (upwards) at birth. %H A326166 R. J. Mathar, <a href="/A326166/b326166.txt">Table of n, a(n) for n = 0..399</a> %H A326166 Felix Fröhlich, <a href="/A326166/a326166_1.pdf">Illustration of iterations 0-100</a> %H A326166 R. J. Mathar, <a href="/A326166/a326166_2.pdf">More illustrations</a> %e A326166 See illustration in links. %Y A326166 Cf. A326167, A326168, A326169. %K A326166 nonn %O A326166 0,1 %A A326166 _Felix Fröhlich_, Jun 09 2019