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”).

A078059
Expansion of (1-x)/(1+2*x-x^2+2*x^3).
0
1, -3, 7, -19, 51, -135, 359, -955, 2539, -6751, 17951, -47731, 126915, -337463, 897303, -2385899, 6344027, -16868559, 44852943, -119262499, 317115059, -843198503, 2242037063, -5961502747, 15851439563, -42148455999, 112071357055, -297994049235, 792356367523, -2106849498391
OFFSET
0,2
FORMULA
a(0) = 1, a(1) = -3, a(2) = 7, a(n) = -2*a(n-1) + a(n-2) - 2*a(n-3) for n > 2. - Jinyuan Wang, Apr 07 2020
PROG
(PARI) Vec((1-x)/(1+2*x-x^2+2*x^3) + O(x^50)) \\ Jinyuan Wang, Apr 07 2020
CROSSREFS
Sequence in context: A087224 A308398 A341703 * A018031 A052948 A026325
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved