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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A139708 Take n in binary. Rotate the binary digits to the left until a 1 once again appears as the leftmost digit. Convert back into decimal for a(n). 4
1, 2, 3, 4, 6, 5, 7, 8, 12, 10, 14, 9, 11, 13, 15, 16, 24, 20, 28, 18, 22, 26, 30, 17, 19, 21, 23, 25, 27, 29, 31, 32, 48, 40, 56, 36, 44, 52, 60, 34, 38, 42, 46, 50, 54, 58, 62, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 64, 96, 80, 112, 72, 88, 104, 120 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

This sequence written in binary is A139709.

This is a permutation of the positive integers. A139706 is the inverse permutation.

MAPLE

A139708 := proc(n) local a; a := ListTools[Rotate](convert(n, base, 2), -1) ; while op(-1, a) = 0 do a := ListTools[Rotate](a, -1) ; od: add(op(i, a)*2^(i-1), i=1..nops(a)) : end: seq(A139708(n), n=1..100) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 04 2008

CROSSREFS

Cf. A139706, A139709.

Sequence in context: A072758 A104464 A139706 * A059893 A132284 A131966

Adjacent sequences:  A139705 A139706 A139707 * A139709 A139710 A139711

KEYWORD

nonn,base

AUTHOR

Leroy Quet Apr 30 2008

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 04 2008

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

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

Last modified February 16 06:08 EST 2012. Contains 205860 sequences.