OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (13,-40).
FORMULA
a(n) = 13*a(n-1) - 40*a(n-2).
G.f.: 3*x/((1-5*x)*(1-8*x)). - Vincenzo Librandi, Oct 05 2014
a(n+1) = 3*A016162(n). - Vincenzo Librandi, Oct 05 2014
MATHEMATICA
Table[8^n-5^n, {n, 0, 20}] (* or *) LinearRecurrence[{13, -40}, {0, 3}, 30] (* Harvey P. Dale, Dec 04 2012 *)
CoefficientList[Series[3 x/((1 - 5 x) (1 - 8 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 05 2014 *)
PROG
(Magma) [8^n - 5^n: n in [0..20]];
(PARI) a(n)=8^n-5^n \\ Charles R Greathouse IV, Jun 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 03 2011
STATUS
approved