OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (6,36).
FORMULA
a(n) = Trace of matrix [({6,6},{6,0})^n].
a(n) = 6^n * Trace of matrix [({1,1},{1,0})^n].
From Colin Barker, Sep 02 2013: (Start)
a(n) = 6*a(n-1) + 36*a(n-2).
G.f.: -6*x*(12*x+1)/(36*x^2+6*x-1). (End)
MATHEMATICA
Table[6^n Tr[MatrixPower[{{1, 1}, {1, 0}}, x]], {x, 1, 20}]
Table[6^n*LucasL[n], {n, 1, 50}] (* G. C. Greubel, Dec 18 2017 *)
LinearRecurrence[{6, 36}, {6, 108}, 20] (* Harvey P. Dale, Jan 20 2024 *)
PROG
(PARI) x='x+O('x^30); Vec(-6*x*(12*x+1)/(36*x^2+6*x-1)) \\ G. C. Greubel, Dec 18 2017
(Magma) [6^n*Lucas(n): n in [1..30]]; // G. C. Greubel, Dec 18 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Jan 09 2007
STATUS
approved