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.

A308898 Fixed point of the morphism 0 -> 01, 1 -> 2, 2 -> 3, 3 -> 012.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Jul 24 2019

Keywords

Comments

This is superficially similar to A014587, although the latter sequence is not well understood. - N. J. A. Sloane, Jul 28 2019

Crossrefs

Cf. A014587. See A309198 for another version.

Programs

  • Mathematica
    Nest[Flatten[ReplaceAll[#,{0->{0,1},1->2,2->3,3->{0,1,2}}]]&,{0},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]-1 ", ")); \\ Rémy Sigrist, Jul 25 2019