login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A107387
Expansion of x*(1-2*x-x^2)/( (1-x)*(1+x)*(1-3*x+x^2)).
2
0, 1, 1, 2, 3, 7, 16, 41, 105, 274, 715, 1871, 4896, 12817, 33553, 87842, 229971, 602071, 1576240, 4126649, 10803705, 28284466, 74049691, 193864607, 507544128, 1328767777, 3478759201, 9107509826, 23843770275, 62423800999, 163427632720, 427859097161
OFFSET
0,4
COMMENTS
The real roots of the denominator function are x = +-1, A104457 and A132338.
FORMULA
a(n) = 1 + A001654(n-2).
MATHEMATICA
LinearRecurrence[{3, 0, -3, 1}, {0, 1, 1, 2}, 50] (* Vincenzo Librandi, Aug 22 2012 *)
CoefficientList[Series[x (1-2x-x^2)/((1-x)(1+x)(1-3x+x^2)), {x, 0, 40}], x] (* Harvey P. Dale, May 31 2020 *)
PROG
(Magma) I:=[ 0, 1, 1, 2]; [n le 4 select I[n] else 3*Self(n-1)-3*Self(n-3) +Self(n-4): n in [1..40]] // Vincenzo Librandi, Aug 22 2012
CROSSREFS
Sequence in context: A027118 A114582 A352816 * A091487 A247332 A162092
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, May 24 2005, corrected Sep 04 2008
EXTENSIONS
Replaced with a regular sequence by R. J. Mathar, Aug 31 2011
STATUS
approved