|
|
A076040
|
|
a(n) = (-1)^n * (3^n - 1)/2.
|
|
2
|
|
|
0, -1, 4, -13, 40, -121, 364, -1093, 3280, -9841, 29524, -88573, 265720, -797161, 2391484, -7174453, 21523360, -64570081, 193710244, -581130733, 1743392200, -5230176601, 15690529804, -47071589413, 141214768240, -423644304721, 1270932914164
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
a(n) = -4*a(n-1) - 3*a(n-2).
G.f.: -x / ((1+x)*(1+3*x)). (End)
|
|
MATHEMATICA
|
Table[(-1)^n*(3^n -1)/2, {n, 0, 30}] (* G. C. Greubel, Jun 18 2021 *)
|
|
PROG
|
(PARI) concat(0, Vec(-x/((x+1)*(3*x+1)) + O(x^100))) \\ Colin Barker, Oct 22 2014
(Sage) [(-1)^n*(3^n -1)/2 for n in (0..30)] # G. C. Greubel, Jun 18 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|