Suppose we have a vector $y$ that represent $m$ dice with a potentially varying number of faces (let's call this number $k_i$, where $i$ goes from $1$ to $m$). Let's also suppose that $x_{max}$ is an input that states the max number that can be present in any combination of the dice after being thrown, and that must be present in at least one of these.
I'm interested in the probability of such an event, so I would need a generic formula where I can provide a vector $y$ of $m$ dices with $k_i$ faces and max integer $x_{max}$.
I understand that the probability of at least one case occurring would be:
$$ P(X) = \prod_{i=1}^{m} \frac{1}{k_i} $$
To consider all cases that fit the criterion I would need to multiply $P(X)$ by the number of all cases $n$, that would yield $P(T)$. This is where I'm having a problem: Im not sure how to arrive at the generic formula to calculate all the possible cases that fit the criterion.
I have arrived at a solution where I generate all permutations and discard the ones that fit the criteria, via programming, but it's not the most efficient method.
Here's a couple of examples:
$$ 1) y = [2,5,8], x_{max} = 8, P(T) = 0.125 $$ $$ 2) y=[2, 5, 7, 3], x_{max} = 3, P(T) = 0.180952380952 $$ $$ 3)y = [3,4] x_{max} = 2 P(T) = 0.25 $$
I'll write $x =x_{max}$. I'm assuming a dice with $k_i$ faces shows integers between $1$ and $k_i$.
We can consider this the probability that no die shows higher than $x$ (I.e. all dice show $\leq x$) minus the probability that all dice show $<x$. This comes out to (taking into account that probability cannot exceed $1$)
$$ {\prod_{i=1}^m \min\left\{\frac{x}{k_i},1\right\}} - {\prod_{i=1}^m \min\left\{\frac{x-1}{k_i},1\right\}} $$