The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A079730 Kolakoski variation using (1,2,3,4) starting with 1,2. 2
1, 2, 2, 3, 3, 4, 4, 4, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 1, 2, 3, 4, 4, 1, 1, 2, 2, 3, 3, 4, 4, 4, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 1, 2, 3, 3, 4, 4, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 1, 1, 1, 1, 2, 3, 4, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(1)=1 then a(n) is the length of n-th run. This kind of Kolakoski variation using(1,2,3,4,...,m) as m grows reaches the Golomb's sequence A001462.
LINKS
Ulrich Reitebuch, Henriette-Sophie Lipschütz, and Konrad Polthier, Visualizing the Kolakoski Sequence, Bridges Conf. Proc.; Math., Art, Music, Architecture, Culture (2023) 481-484.
FORMULA
Partial sum sequence is expected to be asymptotic to 5/2*n.
EXAMPLE
Sequence begins: 1,2,2,3,3,4,4,4,1,1,1,2,2,2,2,3,3,3,3, read it as: (1),(2,2),(3,3),(4,4,4),(1,1,1),(2,2,2,2),(3,3,3,3),... then count the terms in parentheses to get: 1,2,2,3,3,4,4,.. which is the same sequence.
MATHEMATICA
seed = {1, 2, 3, 4};
w = {};
i = 1;
Do[
w = Join[w,
Array[seed[[Mod[i - 1, Length[seed]] + 1]] &,
If[i > Length[w], seed, w][[i]]]];
i++
, {n, 41}];
w
CROSSREFS
Cf. A000002.
Sequence in context: A252759 A085654 A074719 * A035486 A282347 A172397
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 17 2003
EXTENSIONS
Corrected by Ivan Neretin, Apr 01 2015
STATUS
approved

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 May 25 07:15 EDT 2024. Contains 372782 sequences. (Running on oeis4.)