%I #16 Mar 05 2020 23:56:04
%S 2,2,4,4,2,2,2,2,4,4,4,4,2,2,4,4,2,2,4,4,2,2,2,2,4,4,4,4,2,2,2,2,4,4,
%T 4,4,2,2,4,4,2,2,2,2,4,4,4,4,2,2,4,4,2,2,2,2,4,4,4,4,2,2,4,4,2,2,4,4,
%U 2,2,2,2,4,4,4,4,2,2,2,2,4,4,4,4,2,2,4,4,2,2,4,4,2,2,2,2,4,4,4,4,2,2,2,2,4
%N Kolakoski-(2,4) sequence: a(n) is length of n-th run.
%H Ivan Neretin, <a href="/A071928/b071928.txt">Table of n, a(n) for n = 1..10000</a>
%H Michael Baake and Bernd Sing, <a href="http://arxiv.org/abs/math/0206098">Kolakoski-(3,1) is a (deformed) model set</a>, arXiv:math/0206098 [math.MG], 2002-2003.
%H B. Sing, <a href="http://arxiv.org/abs/math-ph/0207037">Kolakoski-(2m,2n) are limit-periodic model sets</a>, arXiv:math-ph/0207037, 2002-2003.
%t seed = {2, 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, 36}]; w (* _Ivan Neretin_, Apr 02 2015 *)
%Y Cf. A000002, A071820, A071907, A064353, A071942.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_
%E More terms from Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Sep 08 2002
|