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-1 of 1 results.

A105123 Substitution Group for a von Koch curve.

Original entry on oeis.org

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

Views

Author

Roger L. Bagula, Apr 08 2005

Keywords

Comments

To get a von Koch set to show up you need level 6 and: bb = aa /. 1 -> {-0.5,0.8660254037844386} /. 2 -> {-0.5, 0.8660254037844386} /. 3 -> {1, 0} /. 4 -> {-1, 0} /. 5 -> {0.5, -0.8660254037844386} /. 6 -> {0.5, -0.8660254037844386} /. 7 -> {-1, 0 } /. 8 -> {1, 0}; ListPlot[FoldList[Plus, {0, 0}, bb], PlotJoined -> False, PlotRange -> All];

Crossrefs

Cf. A105056.

Programs

  • Mathematica
    s[1] = {1, 6, 3, 1}; s[2] = {2, 4, 5, 2}; s[3] = {3, 1, 2, 4}; s[4] = {3, 1, 2, 4}; s[5] = {5, 2, 7, 5}; s[6] = {6, 8, 1, 6}; s[7] = {7, 5, 6, 8}; s[8] = {7, 5, 6, 8}; t[a_] := Join[a, Flatten[s /@ a]]; p[0] = {1}; p[1] = t[{1}]; p[n_] := t[p[n - 1]] aa=Table[p[n], {n, 0, 3}]

Formula

1->{1, 6, 3, 1} 2->{2, 4, 5, 2} 3->{3, 1, 2, 4} 4->{3, 1, 2, 4} 5->{5, 2, 7, 5} 6->{6, 8, 1, 6} 7->{7, 5, 6, 8} 8->{7, 5, 6, 8}
Showing 1-1 of 1 results.