OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Hamzeh Mujahed, Benedek Nagy, Wiener Index on Lines of Unit Cells of the Body-Centered Cubic Grid, Mathematical Morphology and Its Applications to Signal and Image Processing, Volume 9082 of the series Lecture Notes in Computer Science, pp. 597-606.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (25/3)*n^3 + 20*n^2 + (71/3)*n + 12.
From Colin Barker, May 20 2016: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>4.
O.g.f.: 2*x*(32 - 25*x + 24*x^2 - 6*x^3) / (1 - x)^4. (End)
E.g.f.: (12 + 52*x + 45*x^2 + (25/3)*x^3)*exp(x) - 12. - Benedict W. J. Irwin, May 27 2016
MATHEMATICA
Table[(25/3) n^3 + 20 n^2 + (71/3) n + 12, {n, 40}] (* or *)
Rest@ CoefficientList[Series[2 x (32 - 25 x + 24 x^2 - 6 x^3)/(1 - x)^4, {x, 0, 40}], x] (* Michael De Vlieger, May 20 2016 *)
PROG
(PARI) Vec(2*x*(32-25*x+24*x^2-6*x^3)/(1-x)^4 + O(x^50)) \\ Colin Barker, May 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benedek Nagy, May 20 2016
STATUS
approved