OFFSET
0,3
LINKS
FORMULA
G.f.: x/(1-12*x+16*x^2).
E.g.f.: exp(6*x) * sinh(2*sqrt(5)*x)/sqrt(5).
a(n) = 12*a(n-1) - 16*a(n-2).
a(n) = sqrt(5)/20 * ( (sqrt(5)+1)^(2*n) - (sqrt(5)-1)^(2*n) ).
a(n) = Sum_{k=0..n} binomial(2*n, 2*k+1) * 5^k / 2.
a(n) = 2^(2*n-1)*sinh(2*n*arccsch(2))/sqrt(5). - Federico Provvedi, Feb 02 2021
MATHEMATICA
M= {{0, 1}, {-16, 12}}; v[0] = {0, 1}; v[n_]:= v[n]= M.v[n-1];
Table[v[n][[1]], {n, 0, 50}] (* Roger L. Bagula, Aug 15 2006 *)
LinearRecurrence[{12, -16}, {0, 1}, 20] (* Harvey P. Dale, Sep 27 2015 *)
PROG
(Sage) [lucas_number1(n, 12, 16) for n in range(0, 19)] # Zerinvary Lajos, Apr 27 2009
(PARI) a(n) = 4^(n-1)*polchebyshev(n-1, 2, 3/2); \\ Michel Marcus, Jun 10 2018
(Magma) [n le 2 select n-1 else 12*Self(n-1) -16*Self(n-2): n in [1..30]]; // G. C. Greubel, Jul 20 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 01 2004
EXTENSIONS
Name edited by Michel Marcus, Jun 10 2018
STATUS
approved