#C14.txt Help14:=proc(): print(`NuSYT(L), SYTpairs(n), NuSYTpairs(n) `): print(`IandB(a,i)`): end: #IandB(a,i): inputs a weakly-increasing sequence of pos. integers a, #and an integer i puts it where i belongs, and bumps the #one that used to be there. If it is larger than the members of i #it does not bump anyone, and the output is a larger sequence #with i at the end IandB:=proc(a,i) local k,j: k:=nops(a): for j from 1 to nops(a) while a[j]L[i+1] then L1:=[op(1..i-1,L),L[i]-1,op(i+1..k,L)]: S1:=SYT(L1): S:=S union {seq( [op(1..i-1,s1),[op(s1[i]),n],op(i+1..k,s1)] ,s1 in S1)}: fi: od: if L[k]>1 then L1:=[op(1..k-1,L),L[k]-1]: S1:=SYT(L1): S:=S union {seq( [op(1..k-1,s1),[op(s1[k]),n]] ,s1 in S1)}: else L1:=[op(1..k-1,L)]: S1:=SYT(L1): S:=S union {seq( [op(1..k-1,s1), [n]] ,s1 in S1)}: fi: S: end: #PSYT(Y): prints the SYT Y PSYT:=proc(Y) local i: for i from 1 to nops(Y) do lprint(op(Y[i])): od: end: