OFFSET
0,2
COMMENTS
This sequence was obtained by omitting the two initial zeros from A191386, which has a more complicated definition. The simple formula defining this sequence was found by Dan Velleman and Stan Wagon. See A191386 for further information, including references.
LINKS
Winston de Greef, Table of n, a(n) for n = 0..3300
FORMULA
G.f. = (1+s)/(2*s*(1-2*x), where s = sqrt(1-4*x^2).
a(0) = 1, a(1) = 2, a(2) = 5; thereafter (8*n+16)*a(n) + (-4*n-8)*a(n+1) + (-2*n-6)*a(n+2) + (n+3)*a(n+3) = 0.
MATHEMATICA
A323988[n_]:=2^(n-1)+Binomial[n, Floor[n/2]](n+1)/2; Array[A323988, 50, 0] (* Paolo Xausa, Nov 17 2023 *)
PROG
(PARI) a(n) = 2^(n-1) + binomial(n, n\2)*(n+1)/2 \\ Winston de Greef, Sep 17 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 13 2019
STATUS
approved