% Antti Hannukainen
% 
% Return multinomal coefficients !
%
%
% n = matrix of perms, each column => ..
% 


function coeff=multinomalc(n)


for i=1:size(n,1)
  
  coeff(i) = factorial( sum(n(i,:)) )/prod( factorial( n(i,:)) );
  
end


