cp's OEIS Frontend

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.

Showing 1-2 of 2 results.

A102127 Interval between successive arrivals at the origin of an LQTL CA.

Original entry on oeis.org

4, 4, 4, 16, 4, 4, 4, 16, 4, 4, 4, 4, 4, 40, 4, 16, 4, 4, 4, 4, 12, 4, 4, 8, 4, 40, 4, 4, 4, 4, 4, 88, 4, 40, 4, 4, 4, 4, 4, 16, 4, 4, 4, 16, 4, 4, 4, 4, 4, 40, 4, 88, 4, 4, 4, 4, 4, 40, 4, 8, 4, 12, 4, 4, 4, 4, 4, 16, 4, 40, 4, 4, 4, 4, 4, 16, 4, 4, 4, 16, 4
Offset: 0

Views

Author

Robert H Barbour, Feb 14 2005

Keywords

Comments

The "LQTL CA" is similar to the Langton's ant but has 4 states. The ant turns right from the cells with states 0, 1 and left from the cells with states 2, 3 and changes the state of the cell according to the rules 0 -> 1 -> 2 -> 3 -> 0. - Andrey Zabolotskiy, Jan 06 2023

Crossrefs

First differences of A102110.

Programs

  • Python
    x = y = direction = 0
    cells, a = {}, []
    for n in range(1, 1000):
        c = cells.get((x, y), 0)
        cells[(x, y)] = (c + 1) % 4
        direction += [1, 1, -1, -1][c]
        (dx, dy) = [(1, 0), (0, 1), (-1, 0), (0, -1)][direction%4]
        x += dx;  y += dy
        if (x, y) == (0, 0):
            a.append(n)
    print(a) # A102110
    print([x-y for x, y in zip(a, [0]+a)]) # this sequence -  Andrey Zabolotskiy, Jan 06 2023

Extensions

Terms a(26) and beyond from Andrey Zabolotskiy, Jan 06 2023

A094867 Number of iterations of the LQTL cellular automaton required to generate a square of cells in identical states.

Original entry on oeis.org

4, 8, 32, 64, 416, 832
Offset: 0

Views

Author

Robert H Barbour and J. Chapman, Jun 15 2004

Keywords

Comments

For the definition of the LQTL CA, see A102127. The square of size 1 on iteration 1 is not included.

Examples

			After step a(5) = 832 of the cellular automaton, the nonempty cells form a 8x8 square, all cells in state 2.
		

Crossrefs

Extensions

Edited by Andrey Zabolotskiy, Nov 05 2023
Showing 1-2 of 2 results.