OFFSET
0,3
COMMENTS
The same sequence, except few initial terms, for 23 of the 27 other seed triples satisfying -1 <= a(0,1,2) <= 1. The four exceptions are {-1,1,0}, {0,0,0}, {0,1,0}, {1,0,0} - all 0's after the seed triple. The sequence starting with {1,-1,0} has ten extra terms, the other 22 variants have between 1 and 9, except {1, 1, -1} which lacks 3 terms.
MATHEMATICA
RecurrenceTable[{a[0]==0, a[1]==1, a[2]==2, a[n]==a[n-1]-Floor[(a[n-2] + a[n-3])/2]}, a[n], {n, 70}] (* Harvey P. Dale, Dec 03 2012 *)
PROG
(Python)
ppp =0
prpr=1
prev=2
for n in range(65):
cur = prev-(prpr+ppp)//2
print(str(ppp), end=', ')
ppp = prpr
prpr= prev
prev= cur
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Alex Ratushnyak, Jul 01 2012
STATUS
approved