OFFSET
1,1
COMMENTS
Interestingly, 5 is the only odd number in the list so far.
LINKS
Kevin Ryde, Table of n, a(n) for n = 1..8192
Kevin Ryde, PARI/GP Code
EXAMPLE
The length of the longest word in Thue-Morse sequence that admits only unique length-2 factors is 5. For example, 11001 (which is not the only one). Hence a(2)=5.
PROG
(Walnut)
def tmfaceq "At (t<n) => T[i+t]=T[j+t]"; % Check if two length-n factors of Thue-Morse at positions i and j are equal; T is predefined in Walnut as the DFA that recognises Thue-Morse sequence. %
def tm_w_len_N_unique_factors "Ei (Aj, k (i<=j & j<(i+n-N) & j<k & k<(i+n-N+1)) => ~$tmfaceq(j, k, N))": % Find lengths of words with length-N unique factors; must replace N with a constant %
def longest_len_N "$tm_w_len_N_unique_factors(n) & Am (m>n) => ~$tm_w_len_N_unique_factors(m)"; % Check the longest of the lengths found in previous line; must replace N with the same constant %
(PARI) See links.
CROSSREFS
KEYWORD
nonn
AUTHOR
Gandhar Joshi, Sep 13 2023
STATUS
approved