login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A027831
Expansion of 1/(1 - 4*x + 2*x^2 + 4*x^3 - 2*x^4).
1
1, 4, 14, 44, 134, 400, 1184, 3488, 10252, 30096, 88296, 258960, 759368, 2226560, 6528256, 19140352, 56117392, 164528960, 482376160, 1414257856, 4146398048, 12156629760, 35641443840, 104495439360
OFFSET
0,2
FORMULA
a(n) = 4*a(n-1) - 2*a(n-2) - 4*a(n-3) + 2*a(n-4). - Vincenzo Librandi, Jun 20 2012
MATHEMATICA
LinearRecurrence[{4, -2, -4, 2}, {1, 4, 14, 44}, 40] (* Vincenzo Librandi, Jun 20 2012 *)
PROG
(Magma) I:=[1, 4, 14, 44]; [n le 4 select I[n] else 4*Self(n-1)-2*Self(n-2)-4*Self(n-3)+2*Self(n-4): n in [1..40]]; // Vincenzo Librandi, Jun 20 2012
CROSSREFS
Sequence in context: A094309 A000300 A005323 * A097894 A065835 A198643
KEYWORD
nonn,easy
STATUS
approved