OFFSET
0,3
FORMULA
a(n) = avg(Perm2SiteSwap2(PermUnrank3R(n)))
MAPLE
Perm2SiteSwap2 := proc(p) local ip, n, i, a; n := nops(p); ip := convert(invperm(convert(p, 'disjcyc')), 'permlist', n); a := []; for i from 1 to n do if(0 = ((ip[i]-i) mod n)) then a := [op(a), n]; else a := [op(a), ((ip[i]-i) mod n)]; fi; od; RETURN(a); end;
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 22 2001
STATUS
approved