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

 

Logo

Many excellent designs for a new banner were submitted. We will use the best of them in rotation.

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: A207636 A125764 A023897 * A100527 A063946 A154441

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 | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified April 18 11:22 EDT 2014. Contains 240707 sequences.