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!)
A266418 Permutation of natural numbers: a(1) = 1, a(2n) = A266410(a(n)), a(2n+1) = A266409(1+a(n)). 5
1, 4, 2, 10, 6, 7, 3, 22, 20, 15, 11, 16, 12, 9, 5, 40, 53, 37, 45, 29, 33, 24, 21, 31, 35, 25, 23, 19, 18, 13, 8, 68, 111, 85, 156, 64, 104, 75, 123, 51, 74, 56, 87, 43, 59, 39, 48, 54, 80, 61, 90, 46, 60, 42, 57, 36, 44, 34, 41, 27, 26, 17, 14, 107, 210, 167, 387, 133, 276, 229, 573, 101, 198, 158, 351, 120 (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 A266410(n), and each right hand child as A266409(1+n), when the parent node contains n:
|
...................1...................
4 2
10......../ \........6 7......../ \........3
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
22 20 15 11 16 12 9 5
40 53 37 45 29 33 24 21 31 35 25 23 19 18 13 8
etc.
LINKS
FORMULA
a(1) = 1, after which: a(2n) = A266410(a(n)), a(2n+1) = A266409(1+a(n)).
As a composition of related permutations:
a(n) = A266638(A237126(n)).
PROG
(Scheme, with memoization-macro definec)
(definec (A266418 n) (cond ((<= n 1) n) ((even? n) (A266410 (A266418 (/ n 2)))) (else (A266409 (+ 1 (A266418 (/ (- n 1) 2)))))))
CROSSREFS
Inverse: A266417.
Similar or related permutations: A237126, A266638.
Sequence in context: A283938 A283943 A283942 * A193422 A357595 A160572
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Jan 28 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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)