OFFSET
0,1
LINKS
Colin Barker, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (11,-9,-11,10).
FORMULA
a(n) = (198*n - 243*(-1)^n + 2^(n+8)*5^(n+3) - 3245)/3564.
From Colin Barker, Sep 29 2018: (Start)
G.f.: (8 + x - 10*x^2) / ((1 - x)^2*(1 + x)*(1 - 10*x)).
a(n) = 11*a(n-1) - 9*a(n-2) - 11*a(n-3) + 10*a(n-4) for n>3.
(End)
MATHEMATICA
a[n_]:=(198*n - 243*(-1)^n + 2^(n+8)*5^(n+3) - 3245)/3564; Array[a, 50, 0] (* Stefano Spezia, Sep 29 2018 *)
LinearRecurrence[{11, -9, -11, 10}, {8, 89, 897, 8978}, 40] (* Harvey P. Dale, Apr 11 2019 *)
PROG
(PARI) {a(n) = (198*n-243*(-1)^n+2^(n+8)*5^(n+3)-3245)/3564}
(PARI) Vec((8 + x - 10*x^2) / ((1 - x)^2*(1 + x)*(1 - 10*x)) + O(x^25)) \\ Colin Barker, Sep 29 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Sep 29 2018
STATUS
approved