OFFSET
0,2
COMMENTS
See A167683 for link to Hankel transform of A007325. Partial sum of signed version of A000096. [Paul Barry, Nov 09 2009]
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (-2,0,2,1).
FORMULA
From Paul Barry, Nov 09 2009: (Start)
G.f.: x*(2+x)/((1+x)^3*(1-x)).
a(n) = -(-1)^n*(2*n^2+8*n+3-3*(-1)^n)/8. (End)
From Wesley Ivan Hurt, Jun 07 2016: (Start)
a(n) = -2*a(n-1) + 2*a(n-3) + a(n-4) for n>3.
a(n) = -(-1)^n*floor((n+1)*(n+3)/4).
MAPLE
A131723:=n->-(-1)^n*floor((n+1)*(n+3)/4): seq(A131723(n), n=0..100); # Wesley Ivan Hurt, Jun 07 2016
MATHEMATICA
Table[-(-1)^n*Floor[(n + 1)*(n + 3)/4], {n, 0, 100}] (* Wesley Ivan Hurt, Jun 07 2016 *)
PROG
(Magma) [-(-1)^n*(2*n^2+8*n+3-3*(-1)^n)/8: n in [0..50]]; // Vincenzo Librandi, Aug 10 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Sep 16 2007
EXTENSIONS
More terms from Vincenzo Librandi, Aug 10 2011
STATUS
approved