login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A225607 If the run lengths of the binary representation of n are [1+r_1, 1+r_2, 1+r_3, ..., 1+r_k], then those of a(n) are [1+(r_1), 1+(r_1 XOR r_2), 1+(r_2 XOR r_3), ..., 1+(r_{k-1} XOR r_k)], where XOR denotes the XOR binary operator. 2
1, 2, 3, 4, 5, 12, 7, 8, 19, 10, 11, 6, 25, 56, 15, 16, 71, 38, 9, 20, 21, 44, 23, 48, 27, 50, 51, 112, 113, 240, 31, 32, 271, 142, 143, 76, 77, 36, 79, 40, 83, 42, 43, 22, 89, 184, 47, 24, 391, 54, 13, 100, 101, 204, 103, 14, 451, 226, 227, 120, 481, 992, 63 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Inverse permutation of A227987.
LINKS
EXAMPLE
For n=28927:
(1) binary representation of n = "111000011111111",
(2) run lengths of n = [1+2,1+3,1+7],
(3) run lengths of a(n) = [1+2,1+(2 XOR 3),1+(3 XOR 7)]=[3,2,5],
(4) binary representation of a(n) = "1110011111",
(5) a(n) = 927.
PROG
(Perl) See Link section.
CROSSREFS
Sequence in context: A052106 A064446 A352257 * A227987 A261863 A327262
KEYWORD
nonn,base
AUTHOR
Paul Tek, Aug 06 2013
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)