OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Cantor Square Fractal
Index entries for linear recurrences with constant coefficients, signature (13,-36).
FORMULA
a(n) = 5*A016153(n).
a(n) = 13*a(n-1) - 36*a(n-2), n>=2. - Vincenzo Librandi, Mar 16 2011
G.f.: 5*x / ( (1-4*x)*(1-9*x) ). - R. J. Mathar, Mar 18 2011
From G. C. Greubel, Nov 11 2024: (Start)
E.g.f.: 2*exp(13*x/2)*sinh(5*x/2). (End)
MATHEMATICA
Table[9^n-4^n, {n, 0, 30}] (* or *) LinearRecurrence[{13, -36}, {0, 5}, 30] (* Harvey P. Dale, May 11 2017 *)
PROG
(PARI) a(n)=9^n-4^n \\ Charles R Greathouse IV, Oct 07 2015
(Magma) [9^n-4^n: n in [0..30]]; // G. C. Greubel, Nov 11 2024
(SageMath)
A118004=BinaryRecurrenceSequence(13, -36, 0, 5)
[A118004(n) for n in range(31)] # G. C. Greubel, Nov 11 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Apr 09 2006
EXTENSIONS
More terms added by G. C. Greubel, Nov 11 2024
STATUS
approved