\[M_{3}=\frac{n!}{(1!)^{a_{1}}(a_{1}!)\,(2!)^{a_{2}}(a_{2}!)\,\cdots\,(n!)^{a_{n%
}}(a_{n}!)}.\]