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.

A309198 Fixed point of the morphism 1 -> 12, 2 -> 3, 3 -> 4, 4 -> 123.

Original entry on oeis.org

1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 1, 2
Offset: 0

Views

Author

N. J. A. Sloane, Jul 24 2019

Keywords

Crossrefs

See A308898 for another version.

Programs

  • Mathematica
    Nest[Flatten[ReplaceAll[#,{1->{1,2},2->3,3->4,4->{1,2,3}}]]&,{1},10] (* Paolo Xausa, Nov 09 2023 *)
  • PARI
    M = [[1,2], [3], [4], [1,2,3]]; s = [1]; for (k=1, 100, while (k>#s, s=concat(apply(d -> M[d],s))); print1 (s[k] ", ")) \\ Rémy Sigrist, Jul 25 2019