OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
M. Klamkin, ed., Problems in Applied Mathematics: Selections from SIAM Review, SIAM, 1990; see pp. 127-129.
FORMULA
a(n) = n*2^(2*n-1) + (n/2)*binomial(2*n, n). [Typo corrected by Ognjen Dragoljevic, Dec 26 2017]
From G. C. Greubel, Apr 01 2023: (Start)
G.f.: x*(2 + sqrt(1-4*x))/(1-4*x)^2.
E.g.f.: x*(2*exp(4*x)+ exp(2*x)*(BesselI(0, 2*x) + BesselI(1, 2*x))). (End)
MATHEMATICA
Table[n*(4^n +(n+1)*CatalanNumber[n])/2, {n, 0, 40}] (* G. C. Greubel, Apr 01 2023 *)
PROG
(PARI) a(n) = n*2^(2*n-1) + (n/2)*binomial(2*n, n); \\ Michel Marcus, Dec 26 2017
(Magma) [n*(4^n +(n+1)*Catalan(n))/2: n in [0..40]]; // G. C. Greubel, Apr 01 2023
(SageMath) [n*(4^n +binomial(2*n, n))/2 for n in range(41)] # G. C. Greubel, Apr 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 24 2004
STATUS
approved