The counting meaning according to the combination number is C(M+N, M) = C(M+N, N) = (M+N)! / (M! * N! ) a method.
Programming to calculate three factorials, just divide by.