%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
|