OFFSET
1,6
LINKS
Maria Axenovich, Yury Person, and Svetlana Puzynina, A regularity lemma and twins in words, arXiv:1204.2180 [math.CO], 2012; Journal of Combinatorial Theory, Series A, V. 120, Issue 4, 2013, p. 733-743.
FORMULA
From Michael S. Branicky, Aug 29 2025: (Start)
a(n) = f(n, {0,1}) = f(n, 2, 2) as defined in Axenovich et al. and a(6)..a(20) appear in Table 1, p. 8.
floor(n/2) >= a(n) >= floor(n/3). (End)
PROG
(Python)
from itertools import combinations, product
def ok(u, v):
i = j = 0
while i < len(u) and j < len(v):
if u[i] == v[j]:
i += 1
j += 1
return i == len(u)
def f(s):
n = len(s)
for l in range(n//2, n//3, -1):
for I in combinations(range(n), l):
u = "".join(s[i] for i in I)
r = "".join(s[_] for _ in range(n) if _ not in I)
if ok(u, r): return l
return n//3
def a(n): return min(f("1"+"".join(s)) for s in product("01", repeat=n-1))
print([a(n) for n in range(1, 14)]) # Michael S. Branicky, Aug 29 2025
CROSSREFS
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, May 07 2013
STATUS
approved
