OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (11,-45,95,-115,81,-31,5).
FORMULA
G.f.: (29*x^6+30*x^5+459*x^4-46*x^3+9*x^2-1) / ((x-1)^6*(5*x-1)). - Colin Barker, May 09 2013
EXAMPLE
a(1) = 1^5 + 5*1 + 5^1 = 11.
a(2) = 2^5 + 5*2 + 5^2 = 67.
MATHEMATICA
Table[n^5 + 5*n + 5^n, {n, 0, 30}] (* T. D. Noe, Dec 17 2012 *)
LinearRecurrence[{11, -45, 95, -115, 81, -31, 5}, {1, 11, 67, 383, 1669, 6275, 23431}, 30] (* Harvey P. Dale, Jun 03 2024 *)
PROG
(Maxima) makelist(n^5 + 5*n + 5^n, n, 0, 20); /* Martin Ettl, Jan 15 2013 */
(PARI) a(n)=n^5+5*n+5^n \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Dec 15 2012
STATUS
approved