Let N be a set of n distinct objects having the same multiplicity k. For instance,
N={1,1,2,2,3,3}
where n=3 and k=2.
Now I want to select r numbers from this set.
For example if r = 2, then I can select
(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3)
i.e. there are 9 possible ways. I was thinking if I can find a formula that computes this.