login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A026490 Length of n-th run of identical symbols in A026465. 3

%I #47 Mar 04 2024 20:18:10

%S 1,1,2,3,2,1,2,1,2,3,2,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3,2,1,2,1,2,3,2,3,

%T 2,3,2,1,2,1,2,3,2,3,2,3,2,1,2,1,2,3,2,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3,

%U 2,1,2,1,2,3,2,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3

%N Length of n-th run of identical symbols in A026465.

%C From _Jean-Paul Allouche_ and _Michel Dekking_, Sep 08 2019: (Start)

%C This sequence is a morphic sequence, i.e., the letter to letter image of a fixed point of a morphism. The morphism is defined on a four-letter alphabet:

%C 1 -> 322, 2 -> 1212, 3 -> 323232, 4 -> 412.

%C The letter-to-letter map is given by 1 -> 1, 2 -> 2, 3 -> 3, 4 -> 1. The fixed point is the fixed point with prefix 4.

%C How is this obtained? Note that A026465 only has runs of the forms 2, 11 and 222. A026465 itself is the fixed point of the morphism alpha: 1 -> 121, 2 -> 12221.

%C The images of the runs under alpha are alpha(2) = 12221, alpha(11) = 121121, alpha(222) = 122211222112221. Coding the runs with their lengths this induces a morphism on the coded runs: 1 -> 32, 2 -> 1212, 3 -> 323232.

%C Here we use the fact that all three alpha-images have 1 as a prefix and as a suffix. This yields the 2 (coding of 11) at the end of the three images 32, 1212, 323232. The letter 4 is then added to deal with the somewhat strange fact that a(1)=1, a(2)=1. Strange, because the word 11 occurs nowhere else in (a(n)).

%C Actually, one can show in a similar way, using the square of the morphism 1 -> 2, 2 -> 211 instead of the morphism alpha, that (a(n+1)) = 1,2,3,2,1,2,...

%C is a purely morphic sequence, fixed point of the morphism 1 -> 123, 2 -> 212, 3 -> 1232323.

%C One sees from this (by projecting 1, 3 -> 1, 2 -> 2) that (a(n)) has the property a(2n+1) = 2 for all n > 1. Also, by removing the 2's, one sees that the sequence of 1's and 3's is the fixed point of the morphism 1 -> 131, 3 -> 13331, which is the sequence A080426.

%C (End)

%C Because the absolute difference between any pair of adjacent terms is 1 (excluding the first pair of adjacent terms), the length of n-th runs of this sequence is A054977, that is, 2 followed by an infinite sequence of 1's. - _Keith J. Bauer_, Feb 10 2024

%H Reinhard Zumkeller, <a href="/A026490/b026490.txt">Table of n, a(n) for n = 1..10000</a>

%H Claude Lenormand, <a href="/A318921/a318921.pdf">Deux transformations sur les mots</a>, Preprint, 5 pages, Nov 17 2003. Apparently unpublished. This is a scanned copy of the version that the author sent to me in 2003. - _N. J. A. Sloane_, Sep 09 2018. See page 2.

%F a(1)=1, a(2n) = A080426(n) for all n > 0, a(2n+1) = 2 for all n > 1. - _Jean-Paul Allouche_ and _Michel Dekking_, Sep 08 2019

%t Length /@ Split[Length /@ Split[ThueMorse[Range[0, 200]]]] (* _Vladimir Reshetnikov_, Apr 27 2016 *)

%o (Haskell)

%o import Data.List (group)

%o a026490 n = a026490_list !! (n-1)

%o a026490_list = map length $ group a026465_list

%o -- _Reinhard Zumkeller_, Jul 15 2014

%Y Cf. A010060, A026465, A080426.

%Y Cf. A054977.

%K nonn

%O 1,3

%A _Clark Kimberling_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 05:20 EDT 2024. Contains 371906 sequences. (Running on oeis4.)