OFFSET
0,2
COMMENTS
A105426 extended backwards.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8, -1).
FORMULA
G.f.: (1-5*x)/(1-8*x+x^2). - Philippe Deléham, Mar 28 2009
a(n) = (((4-sqrt(15))^n*(1+sqrt(15))+(-1+sqrt(15))*(4+sqrt(15))^n))/(2*sqrt(15)). - Colin Barker, Oct 12 2015
MATHEMATICA
LinearRecurrence[{8, -1}, {1, 3}, 25] (* Vincenzo Librandi, Oct 12 2015 *)
PROG
(PARI) Vec((1-5*x)/(1-8*x+x^2) + O(x^40)) \\ Colin Barker, Oct 12 2015
(Magma) I:=[1, 3]; [n le 2 select I[n] else 8*Self(n-1)-Self(n-2): n in [1..30]]; // Vincenzo Librandi, Oct 12 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 28 2009
EXTENSIONS
More terms from Philippe Deléham and R. J. Mathar, Mar 28 2009
STATUS
approved