OFFSET
0,3
MAPLE
map(PermRevLexRank, map(NonCrossingTranspos, A014486));
NonCrossingTranspos := n -> convert(NonCrossingTransposAux(binexp2pars(n), 1), 'permlist', binwidth(n));
NonCrossingTransposAux := proc(s, ii) local e, p, i, j; i := ii; p := []; for e in s do p := permul(p, NonCrossingTransposAux(e, i+1)); j := i+CountParens(e)+1; p := permul(p, [[i, j]]); i := j+1; od; RETURN(p); end;
CountParens := proc(s) local e, k; if(0 = nops(s)) then RETURN(0); fi; e := 0; for k in s do e := e+2+CountParens(k); od; RETURN(e); end;
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 02 2001
STATUS
approved