login
A074804
Kolakoski-(3,2) sequence: a(n) is length of n-th run.
2
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, 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, 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
OFFSET
1,1
LINKS
MATHEMATICA
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 *)
CROSSREFS
Cf. A000002.
Sequence in context: A010608 A086139 A237879 * A242465 A075074 A321218
KEYWORD
nonn
AUTHOR
Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Sep 08 2002
STATUS
approved