The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A269376 Permutation of nonnegative integers: a(1) = 0, a(2) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A269370(2n+1)). 5
 0, 1, 3, 2, 5, 6, 7, 4, 15, 10, 13, 12, 31, 14, 63, 8, 9, 30, 11, 20, 127, 26, 21, 24, 255, 62, 23, 28, 25, 126, 511, 16, 1023, 18, 29, 60, 2047, 22, 27, 40, 17, 254, 4095, 52, 47, 42, 61, 48, 8191, 510, 16383, 124, 41, 46, 95, 56, 55, 50, 53, 252, 19, 1022, 32767, 32, 49, 2046, 65535, 36, 131071, 58, 125, 120 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 COMMENTS Note the indexing: Domain starts from 1, range from 0. LINKS Antti Karttunen, Table of n, a(n) for n = 1..1024 FORMULA a(1) = 0, a(2) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A269370(2n+1)). As a composition of related permutations: a(n) = A269386(A260741(n)). PROG (Scheme, with memoization-macro definec) (definec (A269376 n) (cond ((<= n 2) (- n 1)) ((even? n) (* 2 (A269376 (/ n 2)))) (else (+ 1 (* 2 (A269376 (A269370 n))))))) CROSSREFS Inverse: A269375. Cf. A269370. Related permutation: A269378. Cf. also A252756, A269386. Sequence in context: A250090 A154437 A305428 * A257793 A083236 A302717 Adjacent sequences:  A269373 A269374 A269375 * A269377 A269378 A269379 KEYWORD nonn AUTHOR Antti Karttunen, Mar 01 2016 STATUS approved

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

Last modified March 30 19:49 EDT 2020. Contains 333127 sequences. (Running on oeis4.)