OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Jun Wang and Zhizheng Zhang, On extensions of Calkin's binomial identities, Discrete Math., 274 (2004), 331-342.
Index entries for linear recurrences with constant coefficients, signature (8,-24,32,-16).
FORMULA
a(n) = 2^(n-3)*n*(7*n^2 + 12*n + 5)/3. (see Wang and Zhang p. 333)
From Chai Wah Wu, Jun 21 2016: (Start)
a(n) = 8*a(n-1) - 24*a(n-2) + 32*a(n-3) - 16*a(n-4) for n > 3.
G.f.: x*(2 + 3*x)/(1 - 2*x)^4. (End)
E.g.f.: x*(12 + 33*x + 14*x^2)*exp(2*x)/6. - Ilya Gutkovskiy, Jun 21 2016
MATHEMATICA
LinearRecurrence[{8, -24, 32, -16}, {0, 2, 19, 104}, 40] (* Vincenzo Librandi, Jun 22 2016 *)
PROG
(Magma) I:=[0, 2, 19, 104]; [n le 4 select I[n] else 8*Self(n-1)-24*Self(n-2)+32*Self(n-3)-16*Self(n-4): n in [1..41]]; // Vincenzo Librandi, Jun 22 2016
(SageMath) [2^(n-3)*n*(7*n^2 + 12*n + 5)/3 for n in (0..40)] # G. C. Greubel, May 24 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 04 2004
STATUS
approved