OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = A271209(n) - 2.
From Wesley Ivan Hurt, Apr 02 2016: (Start)
G.f.: (-1 + 7*x + 12*x^2 + 82*x^3 + 17*x^4 + 3*x^5) / (x-1)^6.
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5)- a (n-6), n > 5. (End)
a(n) = A131471(n) - 1. - Omar E. Pol, Apr 05 2016
MAPLE
MATHEMATICA
Table[n^5+n-1, {n, 0, 100}] (* Waldemar Puszkarz, Apr 02, 2016 *)
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {-1, 1, 33, 245, 1027, 3129}, 40] (* Harvey P. Dale, Sep 02 2020 *)
PROG
(Magma) [n^5+n-1: n in [0..100]]
(PARI) for(n=0, 100, print1(n^5+n-1, ", ")) \\ Waldemar Puszkarz, Apr 02 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Jaroslav Krizek, Apr 02 2016
STATUS
approved