OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (10,-24).
FORMULA
a(n) = 10*a(n-1)-24*a(n-2), a(0)=1, a(1)=8.
G.f.: (1-2*x)/((1-4*x)(1-6*x)).
E.g.f. 2*exp(6*x)-exp(4*x).
MATHEMATICA
Table[2 6^n - 4^n, {n, 0, 20}] (* or *) LinearRecurrence[{10, -24}, {1, 8}, 20] (* Harvey P. Dale, Aug 19 2012 *)
CoefficientList[Series[(1 - 2 x) / ((1 - 4 x) (1 - 6 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Aug 09 2013 *)
PROG
(Magma) [2*6^n-4^n: n in [0..25]]; // Vincenzo Librandi, Aug 09 2013
(PARI) a(n)=2*6^n-4^n \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 25 2003
STATUS
approved