OFFSET
1,2
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 1..5000
FORMULA
Conjecture: a(n) = A007062(n+1) - 1 for n > 0. - Mikhail Kurkov, Mar 10 2022
EXAMPLE
PS(2) begins with 1,3,2,5,4,7,6;
PS(3) begins with 1,3,4,5,2,9,6;
PS(4) begins with 1,3,4,6,9,2,5.
MATHEMATICA
a057030=Range[x=3500]; Do[a057030=Flatten[Join[{Take[a057030, n-1]}, Map[Reverse, Partition[Drop[a057030, n-1], n]]]], {n, 2, NestWhile[#+1&, 1, (x=# Floor[x/#])>0&]-1}]; a057030 (* Peter J. C. Moses, Nov 10 2016 *)
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
Clark Kimberling, Jul 29 2000
STATUS
approved