Homework Statement
Suppose we have M dice each with N sides. The dice are ordered, so that rolling (1, 2, ...) is not the same as (2, 1, ...)
A valid configuration is one for which each number rolled is at least as large as the previous. (For instance, take M=N=2. (1,1) is valid, (1,2) is...