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.

A105220 Trajectory of 1 under the morphism 1->{1,2,1}, 2->{2,2,2}.

This page as a plain text file.
%I A105220 #18 Sep 28 2019 22:18:05
%S A105220 1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,
%T A105220 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,
%U A105220 2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
%N A105220 Trajectory of 1 under the morphism 1->{1,2,1}, 2->{2,2,2}.
%C A105220 Dekking substitution for the Cantor set: characteristic polynomial = x^2 - 5*x + 6 of matrix [2, 0; 1, 3].
%C A105220 This substitution is useful for computing the devil's staircase by bb=aa/. 1->1/3/. 2->0 /. 3->0; ListPlot[FoldList[Plus, 0, bb], PlotRange -> All, PlotJoined -> True, Axes ->False];
%C A105220 The Wikipedia article on L-system Example 3 is "Cantor dust" given by the axiom: A and rules: A -> ABA, B -> BBB. This is isomorphic to the system given in the sequence name. - _Michael Somos_, Jan 12 2015
%H A105220 Antti Karttunen, <a href="/A105220/b105220.txt">Table of n, a(n) for n = 0..19682</a>
%H A105220 F. M. Dekking, <a href="http://dx.doi.org/10.1016/0001-8708(82)90066-4">Recurrent Sets</a>, Advances in Mathematics, vol. 44, no. 1, 1982, page 99, section 4.15
%H A105220 Wikipedia, <a href="http://en.wikipedia.org/wiki/L-system#Example_3:_Cantor_dust">L-system</a> Example 3: Cantor dust
%H A105220 <a href="/index/Fi#FIXEDPOINTS">Index entries for sequences that are fixed points of mappings</a>
%F A105220 a(n) = 2 - A088917(n) = 1 + A316829(n). - _Antti Karttunen_, Aug 24 2019
%F A105220 a(n) = 2 if the ternary expansion of n contains the digit 1, otherwise a(n) = 1. - _Joerg Arndt_, Aug 24 2019
%t A105220 Flatten[ Nest[ Flatten[ # /. {1 -> {1, 2, 1}, 2 -> {2, 2, 2}} &], {1}, 5]]
%o A105220 (PARI)
%o A105220 A088917(n) = { while(n, if(n%3==1, return(0), n\=3)); (1); }; \\ Originally from A005823
%o A105220 A105220(n) = (2-A088917(n)); \\ _Antti Karttunen_, Aug 23 2019
%Y A105220 Cf. A088917, A316829.
%K A105220 nonn
%O A105220 0,2
%A A105220 _Roger L. Bagula_, Apr 29 2005