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!)
A074804 Kolakoski-(3,2) sequence: a(n) is length of n-th run. 2

%I #9 Apr 03 2015 01:59:17

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

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

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

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

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

%t seed = {3, 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, 43}]; 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 September 13 22:05 EDT 2024. Contains 375910 sequences. (Running on oeis4.)