OFFSET
1,3
COMMENTS
a(n) == A109009(n) (mod 10). - Michel Marcus, Sep 05 2013
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: x*(1-4*x+56*x^2-44*x^3+15*x^4)/(1-x)^5. - Vincenzo Librandi, Sep 06 2013
EXAMPLE
a(2) = 2^4 - 15*2 + 15 = 1;
a(4) = 4^4 - 15*4 + 15 = 211.
MATHEMATICA
Table[(n^4 - 15 n + 15), {n, 1, 40}] (* Vincenzo Librandi, Sep 06 2013 *)
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 1, 51, 211, 565}, 40] (* Harvey P. Dale, Nov 23 2019 *)
PROG
(PARI) a(n) = n^4 - 15*n + 15; \\ Michel Marcus, Sep 05 2013
(Magma) [n^4 - 15*n + 15: n in [1..40]]; // Vincenzo Librandi, Sep 06 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Andras Erszegi (erszegi.andras(AT)chello.hu), May 14 2005
EXTENSIONS
Definition clarified by Ralf Stephan, Nov 18 2010.
STATUS
approved