in reply to Combinatorics formula

I think it's (M*N)! / (N!)**M.

There are (M*N)! ways to organize all the items; there are N! identical arrangements of item #1-of-M, so you divide by that; there are N! if the ith item of M, so you also have to divide by that... in the end, there are N groups of M! you need to divide by.

Replies are listed 'Best First'.
Re^2: Combinatorics formula
by BrowserUk (Patriarch) on Oct 19, 2016 at 00:11 UTC

    Thankyou both!!