I am trying to compute an explicit formula using Mathematica for the following multinomial expression:
\begin{equation} \sum_{n_{1}+n_{2}+...+n_{M}=N}^{M} {N \choose n_{1},n_{2},...,n_{M }} \cdot n_{i} = ? \end{equation}
where $i={1,2,...,M}$ and using
multinomial[n__] := (Plus @@ {n})!/Times @@ (#! & /@ {n})
but I don't know how make the sumatoria over all the index $n_{k}$.
In fact I know the following:
\begin{equation} \sum_{n_{1}+n_{2}+...+n_{M}=N}^{M} {N \choose n_{1},n_{2},...,n_{M }} = M^{N} \end{equation}
but I think that this previous results can not be used in order to obtain the result at the first equation, it's the reason why I am asking for a code in Mathematica that tries to compute this thing in an analytical way.
example:
Taking for example M=N=2 and $i=1$ then I have to obtain:
\begin{equation} \sum_{n_{1}+n_{2}=2}^{2} {2 \choose n_{1},n_{2}} \cdot n_{1} = {2 \choose 2,0} \cdot 2+{2 \choose 0,2} \cdot 0+{2 \choose 1,1} \cdot 1\end{equation}
In fact I I take $i=2$ i would obtain the same:
\begin{equation} \sum_{n_{1}+n_{2}=2}^{2} {2 \choose n_{1},n_{2}} \cdot n_{2} = {2 \choose 2,0} \cdot 0+{2 \choose 0,2} \cdot 2+{2 \choose 1,1} \cdot 1\end{equation}
N M^(N-1)
. Agrees with Mr.Wizards answer4 3^(4-1) == 108
(although he had m and n switched). Also agrees with your M=N=2 example. $\endgroup$ – Carl Woll Feb 18 '17 at 18:40