login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A174007
a(2n+1)=2. a(2n)= 1-n.
0
2, 0, 2, -1, 2, -2, 2, -3, 2, -4, 2, -5, 2, -6, 2, -7, 2, -8, 2, -9, 2, -10, 2, -11, 2, -12, 2, -13, 2, -14, 2, -15, 2, -16, 2, -17, 2, -18, 2, -19, 2, -20, 2, -21, 2, -22, 2, -23, 2, -24, 2, -25, 2, -26, 2, -27, 2, -28, 2, -29, 2, -30, 2, -31, 2, -32, 2, -33, 2, -34, 2, -35, 2
OFFSET
1,1
COMMENTS
A064680(n)+A022998(n-1) =c(n) = 2, 2, 10, 5, 18, 8, 26, 11,.. has differences c(2n)-c(2n-1) = -5*(n-1) = -A008587(n-1).
FORMULA
a(n) = n/4+3/2-(-1)^n*(n/4+1/2).
a(n)= +2*a(n-2) -a(n-4). G.f.: -x*(-2+2*x^2+x^3) / ( (x-1)^2*(1+x)^2 ).
a(n+1)-a(n) = (-1)^n*A008619(n+1).
a(n) = A064680(n)-A022998(n-1).
CROSSREFS
Cf. A147657.
Sequence in context: A029345 A153149 A249072 * A330709 A045450 A347419
KEYWORD
easy,sign
AUTHOR
Paul Curtz, Mar 05 2010
STATUS
approved