OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-9,5,5,-9,5,-1).
FORMULA
a(n) = 5*a(n-1) -9*a(n-2) +5*a(n-3) +5*a(n-4) -9*a(n-5) +5*a(n-6) -a(n-7).
G.f: (1+116*x+967*x^2+1672*x^3+967*x^4+116*x^5+x^6)/((1+x)*(x-1)^6).
MATHEMATICA
CoefficientList[Series[(1 + 116*x + 967*x^2 + 1672*x^3 + 967*x^4 + 116*x^5 + x^6)/((1 + x)*(x - 1)^6), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 19 2012 *)
LinearRecurrence[{5, -9, 5, 5, -9, 5, -1}, {1, 121, 1563, 8403, 29525, 80525, 185647}, 50] (* Harvey P. Dale, May 30 2014 *)
PROG
(Magma) I:=[1, 121, 1563, 8403, 29525, 80525, 185647]; [n le 7 select I[n] else 5*Self(n-1) - 9*Self(n-2) + 5*Self(n-3) + 5*Self(n-4) - 9*Self(n-5) + 5*Self(n-6) - Self(n-7): n in [1..40]]; // Vincenzo Librandi, Dec 19 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
R. J. Mathar, Feb 13 2010
STATUS
approved