login
A338624
a(n) is the length of the longest block of consecutive terms appearing twice (possibly with overlap) among the first n terms of the Kolakoski sequence (A000002).
3
0, 0, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 17, 18, 18
OFFSET
1,6
COMMENTS
This sequence is weakly increasing and unbounded (as A000002 is bounded).
LINKS
FORMULA
a(n) <= a(n+1) <= a(n) + 1.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A000002, A338623 (Thue-Morse variant).
Sequence in context: A090702 A029124 A113512 * A194169 A194165 A004524
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 04 2020
STATUS
approved