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!)
A284572 Permutation of natural numbers: a(1) = 1, a(2n) = A005117(1+a(n)), a(2n+1) = A065642(1+a(n)). 4
1, 2, 4, 3, 9, 6, 25, 5, 8, 14, 20, 10, 49, 39, 52, 7, 12, 13, 27, 22, 45, 33, 63, 15, 121, 79, 80, 65, 50, 85, 2809, 11, 16, 19, 169, 21, 28, 42, 56, 35, 529, 73, 92, 55, 68, 103, 128, 23, 32, 199, 244, 130, 100, 131, 243, 106, 132, 82, 153, 139, 172, 4619, 5620, 17, 18, 26, 289, 31, 40, 277, 340, 34, 44, 43, 841, 69, 1849, 91, 171, 58, 48 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence can be represented as a binary tree. Each left hand child is produced as A005117(1+n), and each right hand child as A065642(1+n), when the parent node contains n:
1
................../ \..................
2 4
3......../ \........9 6......../ \........25
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
5 8 14 20 10 49 39 52
7 12 13 27 22 45 33 63 15 121 79 80 65 50 85 2809
etc.
Compare to A285112.
LINKS
FORMULA
a(1) = 1, a(2n) = A005117(1+a(n)), a(2n+1) = A065642(1+a(n)).
PROG
(Scheme, with memoization-macro definec)
(definec (A284572 n) (cond ((= 1 n) n) ((even? n) (A005117 (+ 1 (A284572 (/ n 2))))) (else (A065642 (+ 1 (A284572 (/ (- n 1) 2)))))))
CROSSREFS
Inverse: A284571.
Similar or related permutations: A243344, A243346, A277696, A285112.
Sequence in context: A129596 A356222 A329901 * A157182 A343232 A292145
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Apr 17 2017
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 16 13:56 EDT 2024. Contains 375976 sequences. (Running on oeis4.)