A140683 a(n) = 3*(-1)^(n+1)*2^n - 1.
-4, 5, -13, 23, -49, 95, -193, 383, -769, 1535, -3073, 6143, -12289, 24575, -49153, 98303, -196609, 393215, -786433, 1572863, -3145729, 6291455, -12582913, 25165823, -50331649, 100663295, -201326593, 402653183, -805306369, 1610612735, -3221225473
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (-1, 2).
Programs
-
Magma
[3*(-1)^(n+1)*2^n-1: n in [0..40]]; // Vincenzo Librandi, Aug 08 2011
-
Mathematica
Table[3(-1)^(n+1)2^n-1,{n,0,40}] (* or *) LinearRecurrence[{-1,2},{-4,5},40] (* Harvey P. Dale, May 26 2011 *)
Formula
O.g.f: (4-x)/((x-1)(2x+1)). - R. J. Mathar, Aug 02 2008
a(n) = -a(n-1) + 2*a(n-2); a(0)=-4, a(1)=5. - Harvey P. Dale, May 26 2011
Extensions
Edited and extended by R. J. Mathar, Aug 02 2008
Comments