Mathematics, Probability, Combinatorics.
represent multisets are characterised by the position of the dots (or equivalently, by the position of the dividers). So all we need to do is pick n-1 distinct integers between 1 and n+k. There are ((n+k-1) choose k) ways of doing that. Putting everything together We can rewrite the