OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (10, -40, 82, -91, 52, -12).
FORMULA
a(n) = A142963(n+3,2)/4.
From Johannes W. Meijer, Feb 20 2009: (Start)
a(n) = 10a(n-1) - 40a(n-2) + 82a(n-3) - 91a(n-4) + 52a(n-5) - 12a(n-6).
a(n) = 35/2 + 2*n^2 + 12*n - 84*2^n - 24*2^n*n + 135/2*3^n
G.f.: (1 + 8*z - 11*z^2 - 6*z^3)/((1-z)^3*(1-2*z)^2*(1-3*z)).
(End)
MATHEMATICA
LinearRecurrence[{10, -40, 82, -91, 52, -12}, {1, 18, 129, 646, 2685, 10002}, 30] (* or *) CoefficientList[Series[(1+8x-11x^2-6x^3)/((x-1)^3 (2x-1)^2 (3x-1)), {x, 0, 30}], x] (* Harvey P. Dale, Apr 24 2011 *)
PROG
(Magma) [35/2+2*n^2+12*n-84*2^n-24*2^n*n+135/2*3^n: n in [0..25]]; // Vincenzo Librandi, Jun 18 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Sep 15 2008
STATUS
approved