1

$${w = \frac{N!}{{\prod_{j} n_j!}}}$$