I'd like to find the sample size for which, in a combination with replacement, the probability of having at least one object of each k class is greater than $p$. Each object can take $k$ levels. I think (but I'm not sure) that for a sample size of $n$ and $k$ different classes, the number of different combination with at least one in each $k$ class is : $\sum_{i=1}^{n-k+1}{i}$.
Thus, I'd like to solve this equation : $\frac{\sum_{i=1}^{n-k+1}{i}}{\binom{k+n-1}{n}} = p$ or if I am right, this is $\frac{\frac{1}{2}(n-k+1)(n-k+2)}{\frac{(k+n-1)!}{n!.(k-1)!}} = p$
$p$ is a proportion which should be 0.95 or 0.99, and $k$ is known (256).
Unfortunately, i don't know how to handle either of these ! I read this post, but in my case, as $n$ is in both up and down, i'm lost !
Thanks for any hint on this and sorry for the mistake I introduced the first time !