%I #21 Feb 17 2021 10:07:35
%S 1,0,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,
%T -1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,
%U 1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1
%N Expansion of (1+x-x^2)/(1+x).
%C Row sums of number triangle A105810.
%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (-1).
%F a(n) = -(-1)^n-binomial(1, n)+3*binomial(0, n).
%F a(n) = A033999(n-1), n>1. - _R. J. Mathar_, Aug 28 2008
%F E.g.f.: 2 - x - exp(-x). - _Alejandro J. Becerra Jr._, Feb 17 2021
%t LinearRecurrence[{-1}, {1, 0, -1}, 78] (* _Ray Chandler_, Jul 30 2015 *)
%o (PARI) a(n)=if(n<2,1-n,-(-1)^n) \\ _Charles R Greathouse IV_, Jun 06 2013
%Y Cf. A033999, A105810.
%K easy,sign
%O 0,1
%A _Paul Barry_, May 04 2005