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 (2,-1).
FORMULA
a(n) = 120*(n+2).
From Chai Wah Wu, Nov 11 2018: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 2.
G.f.: x*(-240*x + 360)/(x - 1)^2. (End)
E.g.f.: 120*(-2 + (2+x)*exp(x)). - G. C. Greubel, Nov 11 2018
MATHEMATICA
Differences[#[[2]]-#[[1]]&/@Partition[Range[50]^5, 2, 1], 3] (* Harvey P. Dale, Jan 28 2013 *)
120(Range[50] +2) (* G. C. Greubel, Nov 11 2018 *)
PROG
(PARI) vector(50, n, 120*(n+2)) \\ G. C. Greubel, Nov 11 2018
(Magma) [120*(n+2): n in [1..50]]; // G. C. Greubel, Nov 11 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Eli McGowan (ejmcgowa(AT)mail.lakeheadu.ca), Apr 11 2002
EXTENSIONS
Corrected by T. D. Noe, Mar 14 2008
STATUS
approved