OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Harvey P. Dale, Oct 21 2015: (Start)
a(n) = 5*a(n-1) -10*a(n-2) +10*a(n-3) -5*a(n-4) +a(n-5).
G.f.: -((1+251*x+1131*x^2+545*x^3+16*x^4)/(-1+x)^5). (End)
E.g.f.: exp(x)*(1+255*x+945*x^2+594*x^3+81*x^4). - Wolfdieter Lang, Apr 02 2017
Sum_{n>=0} 1/a(n) = PolyGamma(3, 1/3)/486. - Amiram Eldar, Mar 29 2022
MATHEMATICA
(3*Range[0, 30]+1)^4 (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {1, 256, 2401, 10000, 28561}, 30] (* Harvey P. Dale, Oct 21 2015 *)
PROG
(Magma) [(3*n+1)^4: n in [0..30]]; // Vincenzo Librandi, Sep 21 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved