OFFSET
0,3
FORMULA
a(0)=0, a(1)=1, a(n)=(a(n-1) XOR a(n-2)) + n, where XOR is the bitwise exclusive-or operator.
PROG
(Python)
prpr, prev = 0, 1
for n in range(2, 99):
current = (prpr ^ prev) + n
print(prpr, end=', ')
prpr, prev = prev, current
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
Alex Ratushnyak, May 04 2012
STATUS
approved