Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A139706
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A139706 Take n in binary. Rotate the binary digits to the right until a 1 once again appears as the leftmost digit. Convert back into decimal for a(n). +0
3
1, 2, 3, 4, 6, 5, 7, 8, 12, 10, 13, 9, 14, 11, 15, 16, 24, 20, 25, 18, 26, 21, 27, 17, 28, 22, 29, 19, 30, 23, 31, 32, 48, 40, 49, 36, 50, 41, 51, 34, 52, 42, 53, 37, 54, 43, 55, 33, 56, 44, 57, 38, 58, 45, 59, 35, 60, 46, 61, 39, 62, 47, 63, 64, 96, 80, 97, 72, 98, 81, 99, 68 (list; graph; listen)
OFFSET

1,2

COMMENT

This sequence written in binary is A139707.

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

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

MAPLE

A139706 := 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(A139706(n), n=1..100) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 04 2008

CROSSREFS

Cf. A139707, A139708.

Sequence in context: A080542 A072758 A104464 this_sequence A139708 A059893 A132284

Adjacent sequences: A139703 A139704 A139705 this_sequence A139707 A139708 A139709

KEYWORD

nonn,base

AUTHOR

Leroy Quet Apr 30 2008

EXTENSIONS

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

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 December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research