OFFSET
0,3
FORMULA
a(n) = (2^(n+1) + 4^n + 4*binomial(2*n-2,n-1) - 8*binomial(2*n-2,n-2)*hypergeom([1, 2-n], [1+n], -1])/8 for n > 1.
a(n) ~ A007582(n+2).
MATHEMATICA
a[n_]:=(2^(n+1)+4^n+4Binomial[2n-2, n-1]-8Binomial[2n-2, n-2]Hypergeometric2F1[1, 2-n, 1+n, -1])/8; Join[{0, 1}, Array[a, 26, 2]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Jul 29 2024
STATUS
approved