OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1)
FORMULA
EXAMPLE
a(0) = 1,
a(1) = 1 + 0^4 = 1,
a(2) = 1 + 1^4 = 2,
a(3) = 2 + 2^4 = 18,
a(4) = 18+ 3^4 = 99, etc.
MATHEMATICA
Table[(n + 1) (6 n^4 - 21 n^3 + 31 n^2 - 31 n + 30)/30, {n, 0, 30}]
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {1, 1, 2, 18, 99, 355}, 40] (* Vincenzo Librandi, Jan 20 2016 *)
PROG
(PARI) a(n)=(n+1)*(6*n^4-21*n^3+31*n^2-31*n+30)/30 \\ Charles R Greathouse IV, Jan 19 2016
(PARI) Vec((1-5*x+11*x^2+x^3+16*x^4)/(x-1)^6 + O(x^100)) \\ Altug Alkan, Jan 19 2016
(Magma) [(n+1)*(6*n^4-21*n^3+31*n^2-31*n+30)/30: n in [0..35]]; // Vincenzo Librandi, Jan 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Jan 19 2016
STATUS
approved