OFFSET
1,2
LINKS
FORMULA
From Colin Barker, Nov 08 2012: (Start)
a(n) = 2*a(n-1)+9*a(n-2).
G.f.: -x*(3*x+1)/(9*x^2+2*x-1). (End)
EXAMPLE
a(6) = 1421 since (M^n * [1 1])/3 = [1421 q].
MATHEMATICA
a[n_] := (MatrixPower[{{0, 3}, {3, 2}}, n].{{1}, {1}})[[1, 1]]/3; Table[ a[n], {n, 22}] (* Robert G. Wilson v, Jun 05 2004 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, May 23 2004
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Jun 05 2004
STATUS
approved