OFFSET
0,2
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-6,-7,-6,-1).
FORMULA
a(n+2) = - 5*a(n+1) - a(n) + ((-1)^n)*A109265(n+1)/2.
a(n) = -6*a(n-1) - 7*a(n-2) - 6*a(n-3) - a(n-4) for n>3. - Colin Barker, May 14 2019
a(n) = (1/4)*(5*U(n, -5/2) + U(n-1, -5/2) - U(n, -1/2) - U(n-1, -1/2)), where U(n, x) = ChebyshevU(n, x). - G. C. Greubel, Jan 02 2023
MAPLE
seriestolist(series(1/((x^2+5*x+1)*(x^2+x+1)), x=0, 25));
MATHEMATICA
LinearRecurrence[{-6, -7, -6, -1}, {1, -6, 29, -138}, 40] (* G. C. Greubel, Jan 02 2023 *)
PROG
(PARI) Vec(1/((1+x+x^2)*(1+5*x+x^2)) + O(x^25)) \\ Colin Barker, May 14 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( 1/((1+x+x^2)*(1+5*x+x^2)) )); // G. C. Greubel, Jan 02 2023
(SageMath)
def U(n, x): return chebyshev_U(n, x)
def A110311(n): return (1/4)*(5*U(n, -5/2) + U(n-1, -5/2) - U(n, -1/2) - U(n-1, -1/2))
[A110311(n) for n in range(41)] # G. C. Greubel, Jan 02 2023
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Creighton Dement, Jul 19 2005
STATUS
approved