OFFSET
1,2
COMMENTS
An analysis of this sequence was provided by Keith Ramsay - see link.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Keith Ramsay, Recursively Rotated Permutation. Posting in newsgroup sci.math, Sep 10 2004
EXAMPLE
[1,2,3,4,5,6,...] -> [1,3,2,4,5,6,...] -> [1,3,4,5,2,6,...] -> [1,3,4,2,6,7,...] -> [1,3,4,2,7,5,...] -> [1,3,4,2,7,8,...] -> ...
MATHEMATICA
mx = 69; Take[Fold[Insert[Delete[#1, #2], #1[[#2]], 2 #2 - 1] &, Range[2 mx], Range[mx]], mx] (* Ivan Neretin, Mar 05 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 08 2004
EXTENSIONS
More terms from Hugo Pfoertner, Sep 08 2004
STATUS
approved