OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (18,-77,60).
FORMULA
a(0)=1, a(1)=18; for n>1, a(n)=17*a(n-1)-60*a(n-2)+1. - Vincenzo Librandi, Feb 10 2011
a(n) = (4*12^(n+2) - 11*5^(n+2) + 7)/308. - Yahia Kahloune, Aug 13 2013
E.g.f.: (1/308)*(7*exp(x) - 275*exp(5*x) + 576*exp(12*x)). - G. C. Greubel, Jan 30 2022
MATHEMATICA
LinearRecurrence[{18, -77, 60}, {1, 18, 247}, 40] (* G. C. Greubel, Jan 30 2022 *)
PROG
(PARI) a(n) = (4*12^(n+2) - 11*5^(n+2) + 7)/308; \\ Joerg Arndt, Aug 13 2013
(Magma) [(4*12^(n+2) -11*5^(n+2) +7)/308: n in [0..40]]; // G. C. Greubel, Jan 30 2022
(Sage) [(4*12^(n+2) -11*5^(n+2) +7)/308 for n in (0..40)] # G. C. Greubel, Jan 30 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved