OFFSET
0,3
COMMENTS
Here we use a variant of Foata's transformation, which forms a new permutation by "inserting parentheses" at each left-right maxima, to delimit cycles.
REFERENCES
I. M. Gessel and R. P. Stanley, Algebraic Enumeration, chapter 21 in Handbook of Combinatorics, Vol. 2, edited by R.L.Graham et al., The MIT Press, Mass, 1995, page 1045.
LINKS
Joe Buhler and R. L. Graham, Juggling Drops and Descents, Amer. Math. Monthly, 101, (no. 6) 1994, 507 - 519.
MAPLE
[seq(PermRevLexRank(Foata(PermRevLexUnrank(j))), j=0..119)];
with(group); Foata := proc(p) local c, c1, i, m; c := []; c1 := []; m := 0; for i from 1 to nops(p) do if(p[i] > m) then if(nops(c1) > 1) then c := [op(c), c1]; fi; m := p[i]; c1 := []; fi; c1 := [op(c1), p[i]]; od; if(nops(c1) > 1) then c := [op(c), c1]; fi; RETURN(convert(c, 'permlist', nops(p))); end;
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 19 2001
STATUS
approved