A077925 Expansion of 1/((1-x)*(1+2*x)).
1, -1, 3, -5, 11, -21, 43, -85, 171, -341, 683, -1365, 2731, -5461, 10923, -21845, 43691, -87381, 174763, -349525, 699051, -1398101, 2796203, -5592405, 11184811, -22369621, 44739243, -89478485, 178956971, -357913941, 715827883, -1431655765, 2863311531, -5726623061
Offset: 0
Examples
G.f. = 1 - x + 3*x^2 - 5*x^3 + 11*x^4 - 21*x^5 + 43*x^6 - 85*x^7 + ...
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Wikipedia, Lucas sequence
- Index entries for linear recurrences with constant coefficients, signature (-1,2)
- Index entries related to Gaussian binomial coefficients.
- Index entries for Lucas sequences
Crossrefs
Programs
-
Magma
[(1-(-2)^(n+1))/3: n in [0..40]]; // Vincenzo Librandi, Jun 21 2011
-
Maple
a:=n->sum ((-2)^j, j=0..n): seq(a(n), n=0..35); # Zerinvary Lajos, Dec 16 2008
-
Mathematica
CoefficientList[Series[(1 - x)^(-1)/(1 + 2 x), {x, 0, 50}], x] (* Vladimir Joseph Stephan Orlovsky, Jun 20 2011 *)
-
PARI
a(n)=(1+(-2)^n*2)/3 \\ Charles R Greathouse IV, Jun 21 2011
-
Sage
[gaussian_binomial(n,1,-2) for n in range(1,35)] # Zerinvary Lajos, May 28 2009
Formula
G.f.: 1/(1+x-2*x^2).
a(n) = (1-(-2)^(n+1))/3. - Vladeta Jovovic, Apr 17 2003
a(n) = Sum_{k=0..n} (-2)^k. - Paul Barry, May 26 2003
a(n+1) - a(n) = A122803(n). - R. J. Mathar, Aug 30 2008
a(n) = Sum_{k=0..n} A112555(n,k)*(-2)^k. - Philippe Deléham, Sep 11 2009
a(n) = A082247(n+1) - 1. - Philippe Deléham, Oct 07 2009
G.f.: Q(0)/(3*x), where Q(k) = 1 - 1/(4^k - 2*x*16^k/(2*x*4^k + 1/(1 + 1/(2*4^k - 8*x*16^k/(4*x*4^k - 1/Q(k+1)))))); (continued fraction). - Sergei N. Gladkovskii, May 22 2013
G.f.: Q(0)/2 , where Q(k) = 1 + 1/(1 - x*(4*k-1 + 2*x)/( x*(4*k+1 + 2*x) + 1/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Sep 08 2013
E.g.f.: (2*exp(-2*x) + exp(x))/3. - Ilya Gutkovskiy, Nov 12 2016
a(n) = (-1)^n*A001045(n+1). - M. F. Hasler, Feb 13 2020
a(n) - a(n-1) = a(n-1) - a(n+1) = (-2)^n, a(n+1) = - a(n) + 2*a(n-1) = 1 - 2*a(n). - Michael Somos, Feb 22 2023
Comments