OFFSET
0,4
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,2).
FORMULA
MAPLE
seq( `if`(n=0, -1, (2^n -(-1)^n)/3), n=0..35); # G. C. Greubel, Dec 01 2019
MATHEMATICA
CoefficientList[Series[(2*x-1+2*x^2)/((1+x)*(1-2*x)), {x, 0, 35}], x] (* G. C. Greubel, Jun 04 2016 *)
Table[If[n==0, -1, (2^n -(-1)^n)/3], {n, 0, 35}] (* G. C. Greubel, Dec 01 2019 *)
PROG
(PARI) vector(36, n, if(n==1, -1, (2^(n-1) +(-1)^n)/3 ) ) \\ G. C. Greubel, Dec 01 2019
(Magma) [-1] cat [(2^n -(-1)^n)/3 : n in [1..35]]; // G. C. Greubel, Dec 01 2019
(Sage) [-1]+[lucas_number1(n, 1, -2) for n in (1..35)] # G. C. Greubel, Dec 01 2019
(GAP) Concatenation([-1], List([1..35], n-> (2^n -(-1)^n)/3) ); # G. C. Greubel, Dec 01 2019
CROSSREFS
KEYWORD
sign,less
AUTHOR
Paul Curtz, Oct 29 2009
EXTENSIONS
Edited and extended by R. J. Mathar, Nov 01 2009
STATUS
approved