OFFSET
0,3
COMMENTS
Indices of zeros: 2^(2x)-1, e.g. 0, 3, 15, 63, 255.
FORMULA
a(0)=0, a(1)=1, a(n) = (a(n-1) OR a(n-2)) XOR n, where OR is the bitwise inclusive-or operator, XOR is the bitwise exclusive-or operator.
PROG
(Python)
prpr = 0
prev = 1
for n in range(2, 77):
current = (prev | prpr) ^ n
print(prpr, end=', ')
prpr = prev
prev = current
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, May 06 2012
STATUS
approved