Coefficient(x, mu)
If x is  a sum of  Specht (resp. simple, or indecomposable) modules,
then     Coefficient(x,   mu)   returns  the  coefficient  of
S(mu) in x (resp.  D(mu), or P(mu)).
gap> H:=Specht(3);; x:=H.S(H.P(7,3)); S(7,3)+S(7,2,1)+S(6,2,1^2)+S(5^2)+S(5,2^2,1)+S(4^2,1^2)+S(4,3^2)+S(4,3,2,1) gap> Coefficient(x,5,2,2,1); 1
This function requires the package ``specht'' (see RequirePackage).
GAP 3.4.4