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!)
A269866 Permutation of natural numbers: a(1) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A268674(2n+1)-1). 6
1, 2, 3, 4, 5, 6, 9, 8, 7, 10, 13, 12, 21, 18, 11, 16, 25, 14, 33, 20, 19, 26, 29, 24, 17, 42, 15, 36, 53, 22, 73, 32, 27, 50, 37, 28, 45, 66, 43, 40, 57, 38, 81, 52, 23, 58, 77, 48, 49, 34, 51, 84, 117, 30, 41, 72, 67, 106, 169, 44, 213, 146, 39, 64, 85, 54, 89, 100, 59, 74, 109, 56, 149, 90, 35, 132, 101, 86, 113, 80, 31 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A268674(2n+1)-1).
PROG
(Scheme, with memoization-macro definec)
(definec (A269866 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269866 (/ n 2)))) (else (+ 1 (* 2 (A269866 (- (A268674 n) 1)))))))
CROSSREFS
Inverse: A269865.
Cf. A268674.
Related or similar permutations: A269867, A249813, A252756, A270196.
Differs from similarly constructed A246376 for the first time at n=21, where a(21) = 19, instead of 15.
Sequence in context: A269838 A371985 A246376 * A246375 A269865 A269387
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 12 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 06:03 EDT 2024. Contains 371918 sequences. (Running on oeis4.)