While solving a combinatorial problem I came across an interesting identity.
Let $\mathbf{k}=\{k_0,k_1,k_2\dots\} $ be an ordered set of non-negative integer numbers and let ${\cal K}_m^n$ be a set of $\mathbf{k}$ such that: $$ \mathbf{k}\in {\cal K}_m^n\Leftrightarrow\sum_{i\ge0}k_i=m,\sum_{i\ge0}i k_i=n. \tag{1} $$
Then the following summation identity applies: $$ \sum_{\mathbf{k}\in {\cal K}_m^n}\frac{m!n!}{\displaystyle\prod_{i\ge0}(i!)^{k_i}k_i!}=m^n.\tag{2} $$
Is there a simple way to prove it? Combinatorial and non-combinatorial proofs are of equal interest.
The question is related to the previous one, where the combinatorial meaning of the problem and cardinality of the set ${\cal K}_m^n$ is clarified.
This is simply the multinomial theorem after sorting the lower indices: $$ \begin{align} \sum_{\substack{\sum\limits_{j\ge0}k_j=m\\\sum\limits_{j\ge0}jk_j=n}}\overbrace{\binom{n}{\underbrace{0,0,\dots}_{k_0\text{times}},\,\underbrace{1,1,\dots}_{k_1\text{times}},\,\dots}}^{\text{lower indices sorted}}\overbrace{\binom{m}{k_0,\,k_1,\,\cdots}}^{\substack{\text{number of ways}\\\text{to arrange the}\\\text{lower indices}\\\text{ in the preceding}\\\text{multinomial}}} &=\sum_{\sum\limits_{j=1}^ma_j=n}\overbrace{\binom{n}{a_1,\,a_2,\,\cdots,\, a_m}}^{\text{lower indices unsorted}}1^{a_1+a_2+\cdots+a_m}\\ &=(\overbrace{1+1+\cdots+1}^{\text{$m$ copies}})^n \end{align} $$ That is, since the order of the $a_j$'s doesn't matter in $\binom{n}{a_1,\,a_2,\,\cdots,\, a_m}$, on the left side, we sort the $a_j$'s into $k_0$ $0$'s, $k_1$ $1$'s, etc. and compute that multinomial coefficient and then multiply by the number of equal multinomials on the right (from rearrangements of the $a_j$'s) which is $\binom{m}{k_0,\,k_1,\,\cdots}$.