OFFSET
0,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (2,6).
FORMULA
G.f.: 2*(1 - x)/(1 - 2*x - 6*x^2).
E.g.f.: (exp((1+sqrt(7))*x) + exp((1-sqrt(7))*x));
G.f.: G(0), where G(k)= 1 + 1/(1 - x*(7*k-1)/(x*(7*k+6) - 1/G(k+1))); (continued fraction). - Sergei N. Gladkovskii, Jun 03 2013
a(n) = 2*A083098(n). - Andrew Howroyd, Dec 30 2024
MATHEMATICA
a[0]=2; a[1]=2; a[n_]:=2a[n-1]+6a[n-2]; Table[a[n], {n, 0, 22}] (* James C. McMahon, Dec 30 2024 *)
PROG
(Sage) [lucas_number2(n, 2, -6) for n in range(0, 23)] # Zerinvary Lajos, Apr 30 2009
(PARI) Vec(2*(1 - x)/(1 - 2*x - 6*x^2) + O(x^31)) \\ Andrew Howroyd, Dec 30 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Miklos Kristof, Mar 26 2007
EXTENSIONS
a(23) onwards from Andrew Howroyd, Dec 30 2024
STATUS
approved