OFFSET
1,2
COMMENTS
A nonempty word w is a border of a string x if w is both a prefix and suffix of x, and w does not equal x.
LINKS
Shiyao Guo, Table of n, a(n) for n = 1..120
EXAMPLE
For n = 4 the 16 words are 0000,0001,0010,0011,0100,0101,0110,0111, and their binary complements.
0000 has longest border 3; 0010, 0100, 0110 have longest border 1; and 0101 has longest border 2. So a(4) = 2*(3+3+2) = 16.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Jan 15 2020
EXTENSIONS
More terms from Rémy Sigrist, Jan 16 2020
STATUS
approved