login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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