OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Max Alekseyev, PARI scripts for various problems
Index entries for linear recurrences with constant coefficients, signature (10,-16).
FORMULA
a(0)=0, a(1)=2, a(n)=10a(n-1)-16a(n-2). - T. D. Noe, Nov 30 2006
G.f.: 2*x / ( (8*x-1)*(2*x-1) ). - R. J. Mathar, Jul 23 2014
MATHEMATICA
LinearRecurrence[{10, -16}, {2, 20}, 30] (* Harvey P. Dale, Sep 25 2013 *)
CoefficientList[Series[2/((8 x - 1) (2 x - 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Jul 25 2014 *)
PROG
(Magma) [-(1/3)*2^n+(1/3)*8^n: n in [1..20]]; // Vincenzo Librandi, Jul 25 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Jan 16 2006
STATUS
approved