OFFSET
1,1
COMMENTS
A pair of strings (u,v) is mutually overlapping if some nonempty suffix of u is a prefix of v, and vice versa, such as (00101010,10110001).
All terms are even. - Michael S. Branicky, Dec 06 2020
PROG
(Python)
from itertools import product
def overlapping(u, v):
for i in range(1, 1+min(len(u), len(v))):
if v[:i]==u[-i:]: return True
return False
def a(n):
out = 0
for u in product("01", repeat=n-1):
u = ("0", ) + u
for v in product("01", repeat=n):
if overlapping(u, v) and overlapping(v, u): out += 1
return 2*out # by symmetry
print([a(n) for n in range(1, 11)]) # Michael S. Branicky, Dec 06 2020
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jeffrey Shallit, Feb 13 2018
EXTENSIONS
a(14)-a(17) from Michael S. Branicky, Dec 06 2020
STATUS
approved