[go: up one dir, main page]

login
A269348
Kolakoski-(1,6) sequence: a(n) is length of n-th run.
2
1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 1, 6, 1, 6, 1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 1, 6, 1, 6, 1, 6, 6
OFFSET
1,2
COMMENTS
16666661111, 1666666111111, 1666666111111666666111111666666111111616161666666111111666666111 are primes.
LINKS
Michael Baake and Bernd Sing, Kolakoski-(3,1) is a (deformed) model set, arXiv:math/0206098 [math.MG], 2002-2003.
MATHEMATICA
seed = {1, 6}; w = {}; i = 1; Do[w = Join[w, Array[seed[[Mod[i - 1, Length[seed]] + 1]] &, If[i > Length[w], seed, w][[i]]]]; i++, {n, 250}]; w (* from Ivan Neretin in similar sequences *)
CROSSREFS
Cf. similar sequences listed in A269268.
Sequence in context: A254730 A090611 A132726 * A165057 A165059 A010722
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 25 2016
STATUS
approved