login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A323988
a(n) = 2^(n - 1) + binomial(n, floor(n/2))*(n + 1)/2.
2
1, 2, 5, 10, 23, 46, 102, 204, 443, 886, 1898, 3796, 8054, 16108, 33932, 67864, 142163, 284326, 592962, 1185924, 2464226, 4928452, 10209620, 20419240, 42190558, 84381116, 173962532, 347925064, 715908428, 1431816856, 2941192472, 5882384944, 12065310083, 24130620166
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
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
Cf. A191386.
Sequence in context: A174542 A007182 A191386 * A026677 A109165 A018344
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 13 2019
STATUS
approved