login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A105812 Expansion of (1+x-x^2)/(1+x). 2

%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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 16:52 EDT 2024. Contains 371962 sequences. (Running on oeis4.)