login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178754 a(n) = n XOR floor(Log_2(n)), where XOR is bitwise XOR. 0
1, 3, 2, 6, 7, 4, 5, 11, 10, 9, 8, 15, 14, 13, 12, 20, 21, 22, 23, 16, 17, 18, 19, 28, 29, 30, 31, 24, 25, 26, 27, 37, 36, 39, 38, 33, 32, 35, 34, 45, 44, 47, 46, 41, 40, 43, 42, 53, 52, 55, 54, 49, 48, 51, 50, 61, 60, 63, 62, 57, 56, 59, 58, 70, 71, 68, 69, 66, 67, 64, 65, 78 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

This sequence is not a permutation of the integers which is self-inverse. But is it a permutation?

LINKS

Table of n, a(n) for n=1..72.

MATHEMATICA

f[n_] := BitXor[n, Floor[ Log[2, n]]]; Array[f, 75];

CROSSREFS

Sequence in context: A125764 A023897 A267100 * A276446 A100527 A276445

Adjacent sequences:  A178751 A178752 A178753 * A178755 A178756 A178757

KEYWORD

easy,nonn

AUTHOR

Robert G. Wilson v, Jun 09 2010

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified December 2 21:20 EST 2016. Contains 278694 sequences.