[go: up one dir, main page]

login
A152167
a(n)=-a(n-1)+3*a(n-2), n>1 ; a(0)=1, a(1)=-3 .
4
1, -3, 6, -15, 33, -78, 177, -411, 942, -2175, 5001, -11526, 26529, -61107, 140694, -324015, 746097, -1718142, 3956433, -9110859, 20980158, -48312735, 111253209, -256191414, 589951041, -1358525283, 3128378406, -7203954255, 16589089473
OFFSET
0,2
FORMULA
G.f.: (1-2*x)/(1+x-3*x^2).
a(n) = (-1)^n*A105476(n+1).
a(n) = Sum{k=0..n} A147703(n,k)*(-4)^k.
MATHEMATICA
LinearRecurrence[{-1, 3}, {1, -3}, 30] (* Harvey P. Dale, Dec 24 2013 *)
PROG
(PARI) Vec((1-2*x)/(1+x-3*x^2)+O(x^99)) \\ Charles R Greathouse IV, Jan 11 2012
CROSSREFS
Sequence in context: A232973 A289006 A336632 * A105476 A000599 A063832
KEYWORD
sign,easy
AUTHOR
Philippe Deléham, Nov 27 2008
EXTENSIONS
a(19) corrected by Charles R Greathouse IV, Jan 11 2012
STATUS
approved