Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 4500 articles have referenced us, often saying "we would not have discovered this result without the OEIS".
A178754
a(n) = n XOR floor(Log_2(n)), where XOR is bitwise XOR.