OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,-1,5,-5,5).
FORMULA
a(n) = a(n-1)-a(n-2)+5*a(n-3)-5*a(n-4)+5*a(n-5) for n>7. - Colin Barker, Nov 04 2014
G.f.: x*(x+1)*(4*x^5-2*x^4+3*x^3-2*x^2-1) / ((x^2-x+1)*(5*x^3-1)). - Colin Barker, Nov 04 2014
MATHEMATICA
LinearRecurrence[{1, -1, 5, -5, 5}, {0, 1, 2, 3, 5, 6, 9, 19}, 40] (* Harvey P. Dale, May 13 2022 *)
PROG
(PARI) concat(0, Vec(x*(x+1)*(4*x^5-2*x^4+3*x^3-2*x^2-1)/((x^2-x+1)*(5*x^3-1)) + O(x^100))) \\ Colin Barker, Nov 04 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 23 2007
EXTENSIONS
More terms from Colin Barker, Nov 04 2014
STATUS
approved