Problem
Given a set of unknown size, X elements are sampled with replacement. Of these sampled elements, M elements are unique, meaning (X - M) elements were chosen more than once. Knowing this, what is the probability that the set has size N?
Related question on SE
If a set has n elements and x elements are selected with replacement, what is the probability that m unique elements are selected? answer