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.
%I A107336 #3 Mar 30 2012 17:34:15 %S A107336 1,2,3,3,2,1,3,1,1,3,1,2,3,3,2,1,1,1,2,3,3,2,1,1,2,3,3,2,1,1,1,2,3,3, %T A107336 2,1,3,1,1,3,1,2,3,3,2,1,1,2,3,3,2,1,1,2,3,3,2,1,3,1,1,3,1,2,3,3,2,1, %U A107336 1,2,3,3,2,1,3,1,1,3,1,2,3,3,2,1,1,2,3,3,2,1,1,2,3,3,2,1,3,1,1,3,1,2,3,3,2 %N A107336 222 Pisot cubic substitution with characteristic polynomial:x^3-2*x^2-2*x-2. %F A107336 1->{1, 3, 2, 2, 3, 1}, 2->{3}, 3->{1} %t A107336 s[1] = {1, 2, 3, 3, 2, 1}; s[2] = {3}; s[3] = {1}; t[a_] := Flatten[s /@ a]; p[0] = {1}; p[1] = t[p[0]]; p[n_] := t[p[n - 1]] aa = p[4] %K A107336 nonn,uned %O A107336 0,2 %A A107336 _Roger L. Bagula_, May 22 2005