The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS"). Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A269864 Permutation of natural numbers: a(1) = 1, a(2n)) = A269360(a(n)), a(2n+1) = A250469(1+a(n)). 5
 1, 2, 3, 4, 5, 6, 9, 10, 7, 8, 15, 16, 11, 26, 27, 28, 13, 12, 21, 22, 25, 36, 45, 46, 19, 14, 33, 76, 65, 66, 81, 82, 31, 18, 39, 34, 17, 56, 63, 64, 29, 50, 75, 106, 41, 116, 135, 136, 53, 24, 57, 40, 35, 86, 99, 226, 143, 120, 195, 196, 71, 206, 243, 244, 89, 38, 93, 52, 23, 96, 117, 100, 77, 20, 51, 166, 145, 156, 189, 190, 119, 32, 87 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS This sequence can be represented as a binary tree. When the parent contains n, the left hand child contains A269360(n) [= 1+A250469(n)] and the right hand child contains A250469(1+n):                                      1                                      |                   ................../ \..................                  2                                       3        4......../ \........5                   6......../ \........9       / \                 / \                 / \                 / \      /   \               /   \               /   \               /   \     /     \             /     \             /     \             /     \   10       7           8       15         16       11         26       27 28  13   12 21       22 25   36  45     46  19   14  33     76  65   66  81 etc. LINKS Antti Karttunen, Table of n, a(n) for n = 1..5887 FORMULA a(1) = 1, a(2n) = 1 + A250469(a(n)), a(2n+1) = A250469(1+a(n)). PROG (Scheme, with memoization-macro definec) (definec (A269864 n) (cond ((= 1 n) 1) ((even? n) (+ 1 (A250469 (A269864 (/ n 2))))) (else (A250469 (+ 1 (A269864 (/ (- n 1) 2))))))) CROSSREFS Inverse: A269863. Cf. A250469, A269360. Cf. also A269865, A269866, A269867. Differs from similarly constructed A245606 for the first time at n=15, where a(15)=27 instead of 21. Sequence in context: A269863 A297165 A245606 * A103681 A319824 A039265 Adjacent sequences:  A269861 A269862 A269863 * A269865 A269866 A269867 KEYWORD nonn,tabf AUTHOR Antti Karttunen, Mar 13 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified November 23 21:51 EST 2020. Contains 338603 sequences. (Running on oeis4.)