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