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!)
A234025 Permutation of nonnegative integers: a(n) = A054429(A193231(n)). 7
0, 1, 2, 3, 6, 7, 5, 4, 8, 9, 11, 10, 13, 12, 14, 15, 30, 31, 29, 28, 27, 26, 24, 25, 17, 16, 18, 19, 20, 21, 23, 22, 44, 45, 47, 46, 41, 40, 42, 43, 35, 34, 32, 33, 38, 39, 37, 36, 61, 60, 62, 63, 56, 57, 59, 58, 50, 51, 49, 48, 55, 54, 52, 53, 106, 107, 105 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A054429(A193231(n)).
a(n) = A234027(A054429(n)).
PROG
(Scheme) (define (A234025 n) (A054429 (A193231 n)))
(Python)
def a065621(n): return n^(2*(n - (n&-n)))
def a048724(n): return n^(2*n)
def a054429(n): return 1 if n==1 else 2*a054429(int(n/2)) + 1 - n%2
def a193231(n):
if n<2: return n
if n%2==0: return a048724(a193231(n/2))
else: return a065621(1 + a193231((n - 1)/2))
def a(n): return n if n<2 else a054429(a193231(n)) # Indranil Ghosh, Jun 05 2017
CROSSREFS
Inverse permutation: A234026.
Sequence in context: A092569 A361996 A191726 * A245444 A088573 A181514
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 28 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 September 15 08:13 EDT 2024. Contains 375932 sequences. (Running on oeis4.)