OFFSET
0,2
COMMENTS
Alternatively (Luke Schaeffer), those binary strings of length n that can be written as the concatenation of two palindromes, one of which has even length. - Jeffrey Shallit, Jan 28 2016
Apparently A045655 is a bisection. - R. J. Mathar, Mar 11 2017
LINKS
EXAMPLE
For n = 4 the function counts the strings 0000, 0011, 0110 and their bitwise complements.
MATHEMATICA
palQ[lst_] := lst==Reverse[lst]; a[n_] := (For[k=0; cnt=0, k<2^n, k++, bb = PadLeft[IntegerDigits[k, 2], n]; If[MatchQ[bb, {a___ /; palQ[{a}], b___ /; palQ[{b}]} /; EvenQ[Length[{a}]] || EvenQ[Length[{b}]]], cnt++]]; cnt); Table[an = a[n]; Print["a(", n, ") = ", an]; an, {n, 0, 25}] (* Jean-François Alcover, Jan 28 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Jul 26 2014
EXTENSIONS
a(25)-a(37) from Lars Blomberg, Oct 20 2014
STATUS
approved