OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,0,0,1,-7).
FORMULA
a(n) = 7*a(n-1) + a(n-4) - 7*a(n-5).
From Colin Barker, Dec 24 2015: (Start)
a(n) = 1/200*(25*(-1)^n-(8+6*i)*(-i)^n-(8-6*i)*i^n+41*7^n-50) where i=sqrt(-1).
G.f.: x*(1+3*x+2*x^3) / ((1-x)*(1+x)*(1-7*x)*(1+x^2)).
(End)
PROG
(PARI) Vec(x*(1+3*x+2*x^3)/((1-x)*(1+x)*(1-7*x)*(1+x^2)) + O(x^30)) \\ Colin Barker, Dec 24 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved