A317297 a(n) = (n - 1)*(4*n^2 - 8*n + 5).
0, 5, 34, 111, 260, 505, 870, 1379, 2056, 2925, 4010, 5335, 6924, 8801, 10990, 13515, 16400, 19669, 23346, 27455, 32020, 37065, 42614, 48691, 55320, 62525, 70330, 78759, 87836, 97585, 108030, 119195, 131104, 143781, 157250, 171535, 186660, 202649, 219526, 237315, 256040, 275725, 296394, 318071
Offset: 1
Links
- Colin Barker, Table of n, a(n) for n = 1..1000
- Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
Crossrefs
Programs
-
Mathematica
Table[(n - 1) (4 n^2 - 8 n + 5), {n, 1, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {0, 5, 34, 111}, 50] (* or *) CoefficientList[Series[x (5 + 14 x + 5 x^2)/(1 - x)^4, {x, 0, 50}], x] (* Stefano Spezia, Sep 01 2018 *)
-
PARI
a(n) = (n - 1)*(4*n^2 - 8*n + 5)
-
PARI
concat(0, Vec(x^2*(5 + 14*x + 5*x^2)/(1 - x)^4 + O(x^50))) \\ Colin Barker, Sep 01 2018
Formula
G.f.: x^2*(5 + 14*x + 5*x^2)/(1 - x)^4. - Colin Barker, Sep 01 2018
a(n) = 4*a(n - 1) - 6*a(n - 2) + 4*a(n - 3) - a(n - 4) for n > 4. - Stefano Spezia, Sep 01 2018
E.g.f.: exp(x)*(5*x + 12*x^2 + 4*x^3). - Stefano Spezia, Jan 15 2019
a(n) = ((2*(n-1)+1)^4 - (2*(n-1)-1)^4)/16. - Yigit Oktar, Aug 16 2024
Comments