Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A074803 Kolakoski-(4,2) sequence: a(n) is length of n-th run. 2

%I #10 Apr 03 2015 01:56:28

%S 4,4,4,4,2,2,2,2,4,4,4,4,2,2,2,2,4,4,2,2,4,4,2,2,4,4,4,4,2,2,2,2,4,4,

%T 4,4,2,2,2,2,4,4,2,2,4,4,2,2,4,4,4,4,2,2,2,2,4,4,2,2,4,4,4,4,2,2,2,2,

%U 4,4,2,2,4,4,4,4,2,2,2,2,4,4,4,4,2,2,2,2,4,4,2,2,4,4,2,2,4,4,4,4,2,2,2,2,4

%N Kolakoski-(4,2) sequence: a(n) is length of n-th run.

%H Ivan Neretin, <a href="/A074803/b074803.txt">Table of n, a(n) for n = 1..10000</a>

%t seed = {4, 2}; w = {}; i = 1; Do[w = Join[w, Array[seed[[Mod[i - 1, Length[seed]] + 1]] &, If[i > Length[w], seed, w][[i]]]]; i++, {n, 35}]; w (* _Ivan Neretin_, Apr 02 2015 *)

%Y Cf. A000002.

%K nonn

%O 1,1

%A Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Sep 08 2002

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 August 18 19:11 EDT 2024. Contains 375273 sequences. (Running on oeis4.)