login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


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

2,3

COMMENTS

Except for 2 & 3 which are missing, is every integer present just once?

LINKS

Table of n, a(n) for n=2..73.

MATHEMATICA

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

CROSSREFS

Sequence in context: A074921 A182209 A120634 * A104178 A092874 A198109

Adjacent sequences:  A178750 A178751 A178752 * A178754 A178755 A178756

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 30 00:10 EDT 2020. Contains 334710 sequences. (Running on oeis4.)