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.

A104232 Triangle read by rows, based on the morphism f: 1->2, 2->3, 3->{2,1}. First row is 1. If current row is a,b,c,..., then the next row is a,b,c,...,f(a),f(b),f(c),...

Original entry on oeis.org

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

Views

Author

Roger L. Bagula, Apr 02 2005

Keywords

Comments

This substitution was suggested by looking at the Kenyon border tiling substitutions.

Crossrefs

Cf. A073058.

Programs

  • Mathematica
    s[n_] := n /. {1 -> 2, 2 -> 3, 3 -> {2, 1}}; t[a_] := Join[a, Flatten[s /@ a]]; Flatten[ NestList[t, {1}, 6]]