A153258 n^3 - (n+2)^2.
-4, -8, -8, 2, 28, 76, 152, 262, 412, 608, 856, 1162, 1532, 1972, 2488, 3086, 3772, 4552, 5432, 6418, 7516, 8732, 10072, 11542, 13148, 14896, 16792, 18842, 21052, 23428, 25976, 28702, 31612, 34712, 38008, 41506, 45212, 49132, 53272, 57638
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
Programs
-
Mathematica
a[n_] := n^3-(n+2)^2; lst={}; Do[AppendTo[lst, a[n]], {n, 0, 5!}]; lst
Formula
G.f.: 2*x*(x^3+4*x-2)/(x-1)^4. [Colin Barker, Oct 08 2012]