OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (16,-69,54).
FORMULA
a(n) = (1 - 96*6^n + 135*9^n)/40. - Neven Juric, Oct 22 2009
a(0)=1, a(1)=16, a(n) = 15*a(n-1) - 54*a(n-2) + 1. - Vincenzo Librandi, Feb 10 2011
E.g.f.: (1/40)*(exp(x) - 96*exp(6*x) + 135*exp(9*x)). - G. C. Greubel, Jan 30 2022
MATHEMATICA
LinearRecurrence[{16, -69, 54}, {1, 16, 187}, 41] (* G. C. Greubel, Jan 30 2022 *)
PROG
(PARI) Vec(1/((1-x)*(1-6*x)*(1-9*x)) + O(x^40)) \\ Michel Marcus, Sep 04 2017
(Magma) [(1 -96*6^n +135*9^n)/40: n in [0..40]]; // G. C. Greubel, Jan 30 2022
(Sage) [(1 -16*6^(n+1) +15*9^(n+1))/40 for n in (0..40)] # G. C. Greubel, Jan 30 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved