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 Colin Barker, Dec 01 2015: (Start)
a(n) = 5*a(n-1)-10*a(n-2)+10*a(n-3)-5*a(n-4)+a(n-5) for n>4.
G.f.: (1+x)^2*(1+4*x+x^2) / (1-x)^5.
(End)
MATHEMATICA
Table[((n+1)^5+n^5)/(2n+1), {n, 0, 30}] (* Vincenzo Librandi, Nov 23 2011 *)
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 11, 55, 181, 461}, 50] (* Harvey P. Dale, Dec 14 2019 *)
PROG
(Magma) [((n+1)^5+n^5)/(2*n+1): n in [0..40]]; // Vincenzo Librandi, Nov 23 2011
(PARI) a(n)=n^4+2*n^3+4*n^2+3*n+1 \\ Charles R Greathouse IV, Nov 23 2011
(PARI) Vec((1+x)^2*(1+4*x+x^2)/(1-x)^5 + O(x^100)) \\ Colin Barker, Dec 01 2015
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Henry Bottomley, Jun 06 2002
STATUS
approved