OFFSET
0,2
LINKS
Delbert L. Johnson, Table of n, a(n) for n = 0..1047
Index entries for linear recurrences with constant coefficients, signature (12,-27).
FORMULA
a(n) = 12*a(n-1)-27*a(n-2). G.f.: (3*x+1) / ((3*x-1)*(9*x-1)). - Colin Barker, Oct 01 2014
MAPLE
f := n->2*3^(2*n)-3^n;
PROG
(PARI) a(n) = 2*3^(2*n)-3^n \\ Michel Marcus, Jun 08 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Steve King (ITTTUCSON(AT)aol.com)
EXTENSIONS
Revised by N. J. A. Sloane, Jun 10 2013, replacing incorrect definition with formula from Michel Marcus which matches the terms.
More terms, and corrections to name, Maple and prog to agree with the offset, from Colin Barker, Oct 01 2014
STATUS
approved