login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A262692 Permutation of natural numbers: a(1) = 1; thereafter a(2n) = A182859(1+a(n)), a(2n+1) = A080218(a(n)). 2
1, 2, 3, 4, 5, 9, 6, 12, 7, 16, 8, 25, 14, 18, 10, 32, 19, 20, 11, 45, 26, 24, 13, 66, 38, 42, 22, 49, 29, 28, 15, 81, 53, 50, 31, 52, 33, 30, 17, 121, 73, 68, 39, 64, 37, 40, 21, 175, 106, 104, 61, 114, 69, 56, 35, 135, 82, 76, 46, 75, 43, 44, 23, 231, 129, 147, 86, 136, 83, 80, 51, 144, 85, 88, 55, 78, 47, 48, 27, 338, 197, 190, 118, 182, 108, 105, 62, 172, 101, 102, 60, 110, 65, 54, 34 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

This sequence can be represented as a binary tree. For each node containing n, the left hand child is obtained as A182859(1+n), and the right hand child as A080218(n):

                                     1

                                     |

                  ................../ \..................

                 2                                       3

       4......../ \........5                   9......../ \........6

      / \                 / \                 / \                 / \

     /   \               /   \               /   \               /   \

    /     \             /     \             /     \             /     \

  12       7          16       8          25       14         18       10

32  19   20 11      45  26   24 13      66  38   42  22     49  29   28  15

etc.

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..4095

Index entries for sequences that are permutations of the natural numbers

FORMULA

a(1) = 1; thereafter a(2n) = A182859(1+a(n)), a(2n+1) = A080218(a(n)).

PROG

(Scheme, with memoization-macro definec)

(definec (A262692 n) (cond ((<= n 1) n) ((even? n) (A182859 (+ 1 (A262692 (/ n 2))))) (else (A080218 (A262692 (/ (- n 1) 2))))))

CROSSREFS

Inverse: A262691.

Cf. A080218, A182859.

Sequence in context: A124652 A250552 A048623 * A245821 A075161 A029636

Adjacent sequences:  A262689 A262690 A262691 * A262693 A262694 A262695

KEYWORD

nonn,tabf

AUTHOR

Antti Karttunen, Sep 28 2015

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 12 07:03 EST 2019. Contains 329052 sequences. (Running on oeis4.)