OFFSET

0,1

FORMULA

a(n) = (2n+1-13*(-1)^n)/4. G.f.: -(3-7x+3x^2)/((1+x)(1-x)^2). - R. J. Mathar, Jan 08 2009

MATHEMATICA

lst={}; a=3; Do[a=n-a; AppendTo[lst, a], {n, 0, 6!}]; lst

RecurrenceTable[{a[0]==-3, a[n]==n-a[n-1]}, a, {n, 80}] (* Harvey P. Dale, May 16 2016 *)

CROSSREFS

KEYWORD

sign

AUTHOR

Vladimir Joseph Stephan Orlovsky, Dec 14 2008

EXTENSIONS

Indices added to definition, offset corrected by R. J. Mathar, Jan 08 2009

STATUS

approved