OFFSET
0,3
COMMENTS
The separator length at position n is the length of the shortest block beginning at that position that never appeared earlier in the sequence.
LINKS
E. Garel, Séparateurs dans les mots infinis engendrés par morphismes, Theor. Comput. Sci. 180 (1997), 81-113.
FORMULA
a(4*n+3) = 2*a(2*n) - 2*a(2*n+1) - 2*a(4*n) + a(4*n+1) + 2*a(4*n+2).
a(8*n) = -2*a(2*n) + 3*a(4*n).
a(8*n+1) = -2*a(2*n) + 2*a(4*n) + a(4*n+1).
a(8*n+2) = 2*a(n) - 4*a(2*n) + a(2*n+1) + a(4*n) + 2*a(4*n+1).
a(8*n+4) = -2*a(2*n) + a(4*n) + 2*a(4*n+2).
a(8*n+5) = -4*a(2*n) + 2*a(4*n) + 2*a(4*n+2).
a(8*n+6) = 2*a(2*n) - 4*a(2*n+1) - 3*a(4*n) + 2*a(4*n+1) + 4*a(4*n+2).
EXAMPLE
The first 10 symbols of Thue-Morse are 011010011001. We index it starting with index 0. Then a(6) = 5, because a(6..9) = 0110 already appears, while a(6..10) = 01100 does not.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Jul 10 2020
STATUS
approved