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!)
A026167 a(n) is the position of n in A026166. 2
1, 2, 4, 3, 7, 8, 10, 5, 13, 6, 16, 17, 19, 20, 22, 9, 25, 26, 28, 11, 31, 12, 34, 35, 37, 14, 40, 15, 43, 44, 46, 47, 49, 18, 52, 53, 55, 56, 58, 21, 61, 62, 64, 23, 67, 24, 70, 71, 73, 74, 76, 27, 79, 80, 82, 29, 85, 30, 88, 89, 91, 32, 94 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This permutation of the positive integers is the inverse of A026166. - Clark Kimberling, Oct 20 2019
LINKS
MATHEMATICA
a[1] = 1; z = 3000;
Do[{L, R} = {n - #, n + #} &[Floor[(n - 1)/2]];
If[! Head[a[L]] === Integer, a[L] = n, a[R] = n], {n, 2, z}];
a026166 = Most[Last[
Last[Reap[NestWhile[# + 1 &, 1, Head[Sow[a[#]]] === Integer &]]]]]; (* A026166 *)
Flatten[Table[Position[a026166, n], {n, 1, 1000}]] (* A026167 *)
(* Peter J. C. Moses, Oct 20 2019 *)
CROSSREFS
Cf. A026166.
Sequence in context: A235493 A105081 A235485 * A361641 A127002 A027634
KEYWORD
nonn
AUTHOR
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 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)