OFFSET
1,2
COMMENTS
a(n) equals the largest term in row n of triangle A110200.
FORMULA
a(n) = (4^n-1)/3*C(n-2, n\2) + (2^n-1)^2*C(n-2, n\2-1).
MATHEMATICA
Join[{1}, Table[Total[Select[Range[2^n], DigitCount[#, 2, 1]==Floor[ n/2]+ 1&]^2], {n, 2, 20}]] (* Harvey P. Dale, Aug 22 2021 *)
PROG
(PARI) a(n)=(4^n-1)/3*binomial(n-2, n\2)+(2^n-1)^2*binomial(n-2, n\2-1)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 16 2005
STATUS
approved