OFFSET
1,2
COMMENTS
LINKS
FORMULA
XOR BINOMIAL transform begins: B={1, 2, 3, 7, 7, 0, 0, 14, 14, 0, 0, ...} and continues with B(2^k)=B(2^k+1)=7*2^(k-2) (for k>=2) and zeros elsewhere.
MATHEMATICA
Array[BitXor[BitXor[#, Floor[#/2]], Floor[#/4]]&, 70] (* Harvey P. Dale, Aug 10 2012 *)
PROG
(PARI) a(n)=bitxor(bitxor(n, n\2), n\4)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Paul D. Hanna, Nov 09 2004
STATUS
approved