Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Number of black squares after n moves of a variant of Langton's ant with turns of 45 degrees.
1

%I #19 Dec 13 2021 23:34:30

%S 0,1,2,3,4,5,6,7,8,7,8,9,10,11,12,11,10,11,12,13,14,15,14,13,14,15,16,

%T 17,18,19,20,21,20,21,22,23,24,25,24,23,24,25,26,25,24,25,26,27,28,29,

%U 28,29,30,29,30,31,30,31,32,33,34,35,34,35,36,37,36,37

%N Number of black squares after n moves of a variant of Langton's ant with turns of 45 degrees.

%C Initially, all squares are white, and the ant is at the origin and oriented towards the east. The ant can travel horizontally or vertically (in any of the four cardinal directions) and diagonally (in any of the four intercardinal directions).

%C At a white square, the ant turns 45 degrees left, flips the color of the square and moves forward.

%C At a black square, the ant turns 45 degrees right, flips the color of the square and moves forward.

%C As in the original variant, the ant eventually builds a recurrent highway pattern, in the present case of 196 steps.

%H Rémy Sigrist, <a href="/A309384/b309384.txt">Table of n, a(n) for n = 0..10000</a>

%H Rémy Sigrist, <a href="/A309384/a309384.png">Representation of the squares visited during the first 100000000 moves</a> (the dark squares are the most visited)

%H Rémy Sigrist, <a href="/A309384/a309384_1.png">Representation of the grid after 1021259426 steps</a>

%H Rémy Sigrist, <a href="/A309384/a309384.gp.txt">PARI program for A309384</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Langton&#39;s_ant">Langton's ant</a>

%F a(n + 196) = a(n) + 72 for n >= 1021254426.

%e The first positions of the ant are:

%e . . 4 3 . . . .

%e . 5 . . 2 . . .

%e . 6 . . 1 . . .

%e . . 7 0,8 . . 11 .

%e . . . . 9 10 . .

%o (PARI) See Links section.

%Y Cf. A255938.

%K nonn

%O 0,3

%A _Rémy Sigrist_, Jul 27 2019