Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165199
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165199 Let b(n,m) be the mth digit, reading left to right, of binary n. (b(n, 1) is the most significant binary digit, which is 1.) Then a(n) is such that b(a(n),1)=1; and if b(n,m)=b(n,m-1) then b(a(n),m) does not = b(a(n),m-1); and if b(n,m) does not = b(n,m-1) then b(a(n), m) = b(a(n),m-1), for all m where 2 <= m <= number binary digits in n. +0
1
1, 3, 2, 6, 7, 4, 5, 13, 12, 15, 14, 9, 8, 11, 10, 26, 27, 24, 25, 30, 31, 28, 29, 18, 19, 16, 17, 22, 23, 20, 21, 53, 52, 55, 54, 49, 48, 51, 50, 61, 60, 63, 62, 57, 56, 59, 58, 37, 36, 39, 38, 33, 32, 35, 34, 45, 44, 47, 46, 41, 40, 43, 42, 106, 107, 104, 105, 110, 111, 108 (list; graph; listen)
OFFSET

1,2

COMMENT

This is a self-inverse permutation of the positive integers.

EXAMPLE

12 in binary is 1100. Generating a(12): the leftmost binary digit is 1. In 1100, the 2nd digit from the left equals the first, so the second digit from the left of binary a(12) does not equal the first; so we have 10 as the two leftmost digits in binary a(12). The third digit from the left of binary 12 does not equal the second, so the third digit from the left of binary a(12) equals the second; therefore the leftmost 3 digits of a(12) in binary are 100. And finally, the rightmost digit of binary 12 equals the 3rd from the left, so the rightmost digit of binary a(12) does not equal the 3rd from the left of binary a(12). Therefore a(12) in binary is 1001. And a(12) is the decimal equivalent of this, which is 9.

CROSSREFS

Sequence in context: A154446 A154442 A154445 this_sequence A120231 A083362 A153142

Adjacent sequences: A165196 A165197 A165198 this_sequence A165200 A165201 A165202

KEYWORD

base,nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Sep 07 2009

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Sep 10 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research