OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..520
Index entries for linear recurrences with constant coefficients, signature (97,-1296).
FORMULA
G.f.: (1-36*x)/((1-16*x)*(1-81*x))
a(n) = 97*a(n-1) - 1296*a(n-2). - Harvey P. Dale, Jun 23 2013
E.g.f.: (1/13)*(4*exp(16*x) + 9*exp(81*x)). - G. C. Greubel, Mar 11 2023
MATHEMATICA
Table[(4^n+9^n)/13, {n, 1, 31, 2}] (* or *) LinearRecurrence[{97, -1296}, {1, 61}, 20] (* Harvey P. Dale, Jun 23 2013 *)
PROG
(PARI) a(n)=(4^(2*n+1)+9^(2*n+1))/13
(Magma) [(4^(2*n+1)+9^(2*n+1))/13: n in [0..30]]; // G. C. Greubel, Mar 11 2023
(SageMath) [(4^(2*n+1)+9^(2*n+1))/13 for n in range(31)] # G. C. Greubel, Mar 11 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaume Oliver Lafont, Sep 11 2009
STATUS
approved