cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A266418 Permutation of natural numbers: a(1) = 1, a(2n) = A266410(a(n)), a(2n+1) = A266409(1+a(n)).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Jan 28 2016

Keywords

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.

Crossrefs

Inverse: A266417.
Similar or related permutations: A237126, A266638.

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)).