We have a set of $n^2$ integer and each number of them is in interval $[1, n]$.
Every number from $1$ to $n$ is frequent $n$ times.
For example, $n = 3$ and set is $\{1, 1, 1, 2, 2, 2, 3, 3, 3\}$.
We also have $n$ boxes
The question is how many ways we can choose $n$ numbers from the set and distribute them into the $n$ boxes with one number appearing in each box such that the number (from the set) in the $i$th box is $\geq$ the number in the $(i-1)$st box?
For example: ($n = 3$)
- correct situation: $1, 1, 3$
- not correct situation : $1, 2, 1$
The solution is $C(n+n-1, n)$, but I can't understand why. Why is that correct?