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-3 of 3 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

A126980 a(n) = 14*n + 47.

Original entry on oeis.org

47, 61, 75, 89, 103, 117, 131, 145, 159, 173, 187, 201, 215, 229, 243, 257, 271, 285, 299, 313, 327, 341, 355, 369, 383, 397, 411, 425, 439, 453, 467, 481, 495, 509, 523, 537, 551, 565, 579, 593, 607, 621, 635, 649, 663, 677, 691, 705, 719, 733, 747
Offset: 0

Views

Author

Robert H Barbour, Mar 20 2007, Jun 12 2007

Keywords

Comments

Superhighway created by 'LQTL Ant' L90R135L90R135 from iteration 47 where the Ant moves in a 'Moore neighborhood' (nine cells), the L indicates a left turn, the R a right turn, and the numerical value is the turn angle (in degrees) at each iteration.

References

  • P. Sakar, "A Brief History of Cellular Automata," ACM Computing Surveys, vol. 32, 2000.
  • S. Wolfram, A New Kind of Science, 1st ed. Il.: Wolfram Media Inc., 2002.

Crossrefs

Programs

Formula

From Chai Wah Wu, May 30 2016: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 1.
G.f.: (-33*x + 47)/(x - 1)^2. (End)
E.g.f.: (47 + 14*x)*exp(x). - G. C. Greubel, May 30 2016

Extensions

More terms from Stefan Steinerberger and Diana L. Mecum, Jun 17 2007

A102110 Iterations during which LQTL cellular automaton passes through the origin.

Original entry on oeis.org

4, 8, 12, 28, 32, 36, 40, 56, 60, 64, 68, 72, 76, 116, 120, 136, 140, 144, 148, 152, 164, 168, 172, 180, 184, 224, 228, 232, 236, 240, 244, 332, 336, 376, 380, 384, 388, 392, 396, 412, 416, 420, 424, 440, 444, 448, 452, 456, 460, 500, 504, 592, 596, 600, 604
Offset: 1

Views

Author

Robert H Barbour, Feb 14 2005

Keywords

Crossrefs

Cumulative sums of A102127.

Extensions

Terms a(19) and beyond from Andrey Zabolotskiy, Jan 06 2023
Showing 1-3 of 3 results.