OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-13).
FORMULA
a(n) = 8*a(n-1)-13(n-2) for n > 1; a(0) = 1, a(1) = 6.
G.f.: (1-2*x)/(1-8*x+13*x^2). - Klaus Brockhaus, Jun 19 2009
MAPLE
seq(expand(((2+sqrt(3))*(4+sqrt(3))^n-(2-sqrt(3))*(4-sqrt(3))^n)/sqrt(12)), n = 0 .. 20) # Emeric Deutsch, Jun 20 2009
MATHEMATICA
LinearRecurrence[{8, -13}, {1, 6}, 30] (* Harvey P. Dale, Jun 01 2016 *)
PROG
(PARI) F=nfinit(x^2-3); for(n=0, 20, print1(nfeltdiv(F, ((2+x)*(4+x)^n-(2-x)*(4-x)^n), (2*x))[1], ", ")) \\ Klaus Brockhaus, Jun 19 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Jun 17 2009
EXTENSIONS
Extended beyond a(6) by Klaus Brockhaus and Emeric Deutsch, Jun 19 2009
Edited by Klaus Brockhaus, Jul 05 2009
STATUS
approved