OFFSET
0,3
LINKS
Sean A. Irvine, Table of n, a(n) for n = 0..119
Sean A. Irvine, Complete Maple program with all necessary functions
FORMULA
perm_ranks_seq := atp_perm_ranks(120);
MAPLE
atp_perm_ranks := proc(upto_n) local t, a, p, i, k; p := convert([1], 'disjcyc'); k := nops(factorial_base(upto_n))+1; a := []; for i from 1 to upto_n do a := [op(a), PermRevLexRank(convert(p, 'permlist', k))]; t := adj_tp_seq(i); p := mulperms([[t, t+1]], p); od; RETURN(a); end;
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Antti Karttunen, Aug 09 2000
STATUS
approved