OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (4,0,-8).
FORMULA
G.f.: -(3100*x^8 -3596*x^7 +854*x^6 -268*x^5 -6*x^4 +22*x^3 -4*x^2 +2*x -1) / ((2*x -1)*(4*x^2 +2*x -1)). - Colin Barker, Mar 15 2013
a(n) = +4*a(n-1) -8*a(n-3). - Colin Barker, Mar 15 2013
MATHEMATICA
Join[{1, 2, 12, 18, 62, 420}, {LinearRecurrence[{4, 0, -8}, {682, 5828, 16852}, 20]}] (* Bruno Berselli, Mar 15 2013 *)
PROG
(Magma) I:=[1, 2, 12, 18, 62, 420, 682, 5828, 16852]; [n le 9 select I[n] else 4*Self(n-1) - 8*Self(n-3): n in [1..30]]; // Vincenzo Librandi, Mar 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Mar 03 2006
EXTENSIONS
Definition rewritten using Colin Barker's g.f. by Bruno Berselli, Mar 15 2013
STATUS
approved