OFFSET
1,3
FORMULA
a(1)=1, then a(n) = (a(n-1) + n) XOR n, where XOR is the bitwise exclusive-OR operator.
PROG
(Python)
a=1
for n in range(2, 77):
print str(a)+', ',
a = (a+n) ^ n
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Feb 03 2014
STATUS
approved