The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A076040 a(n) = (-1)^n * (3^n - 1)/2. 2

%I #21 Jun 18 2021 07:24:54

%S 0,-1,4,-13,40,-121,364,-1093,3280,-9841,29524,-88573,265720,-797161,

%T 2391484,-7174453,21523360,-64570081,193710244,-581130733,1743392200,

%U -5230176601,15690529804,-47071589413,141214768240,-423644304721,1270932914164

%N a(n) = (-1)^n * (3^n - 1)/2.

%H G. C. Greubel, <a href="/A076040/b076040.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-4,-3).

%F Equals A038608 o A003462 = A033999 * A003462, i.e., a(n) = (-1)^n*A003462(n) = (-1)^A003462(n)*A003462(n) = A038608(A003462(n)). - _M. F. Hasler_, Oct 21 2014

%F From _Colin Barker_, Oct 22 2014: (Start)

%F a(n) = -4*a(n-1) - 3*a(n-2).

%F G.f.: -x / ((1+x)*(1+3*x)). (End)

%F E.g.f.: (-1)*exp(-2*x)*sinh(x). - _G. C. Greubel_, Jun 18 2021

%t Table[(-1)^n*(3^n -1)/2, {n, 0, 30}] (* _G. C. Greubel_, Jun 18 2021 *)

%o (PARI) concat(0, Vec(-x/((x+1)*(3*x+1)) + O(x^100))) \\ _Colin Barker_, Oct 22 2014

%o (Sage) [(-1)^n*(3^n -1)/2 for n in (0..30)] # _G. C. Greubel_, Jun 18 2021

%Y Cf. A003462, A033999.

%K sign,easy

%O 0,3

%A _M. F. Hasler_, Oct 21 2014

%E Former duplicate of A003462 changed to the signed variant by _M. F. Hasler_, Oct 21 2014

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 May 20 09:36 EDT 2024. Contains 372710 sequences. (Running on oeis4.)