OFFSET
1,2
COMMENTS
a(n) mod 2 = A035263(n)
PROG
(PARI) a(n)=if(n<2, 1, if(n%2, 2*a(n-1)+1, 1+a(n/2)%2))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 11 2004
STATUS
approved