OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 7*n^3 - 7*n^2 + 14*n - 8.
G.f.: (6+24*z+4*z^2+8*z^3)/(1-z)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - G. C. Greubel, Jun 15 2016
MATHEMATICA
Table[7*n^3 - 7*n^2 + 14*n - 8, {n, 1, 100}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {6, 48, 160, 384}, 100] (* G. C. Greubel, Jun 15 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Johannes W. Meijer, Nov 10 2009
STATUS
approved