
$$
{6\choose k}k!
{N!\over \prod {i!}^{n_i}{n_i}!}
\qquad \hbox{\rm where $k = \sum n_i$}
$$