OFFSET
1,1
COMMENTS
A nontrivial palindrome is one that is of length at least 2.
For n even we have a(n) = 2a(n-1), and for n odd, a(n) = A003000(n).
LINKS
Daniel Gabric, Jeffrey Shallit, Borders, Palindrome Prefixes, and Square Prefixes, arXiv:1906.03689 [cs.DM], 2019.
EXAMPLE
For n = 5, the only words counted are 00101, 00110, 00111, 01100, 01101, 01111 and their binary complements.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Jun 06 2019
STATUS
approved