Selecting 10 numbers between 1 and 100 without replacement (i.e., such that the selected numbers are distinct from each other), what are the odds that some subset of those numbers add up to precisely 100?
If possible, more generally, selecting $x$ random numbers (for $x < y$) between $1$ and $y$ inclusive without replacement, what is the probability of some subset adding up to $y$?
Responding to comments: my motivation is to understand how likely a randomly-configured Subset Sum game is to have a solution in practice for given values of $x$ and $y$. Obviously for small $x$ and large $y$ the probability lowers. I'm curious about how the probability evolves over $x$ and $y$.
- If $x = y$, then obviously there is always a solution as $y$ is in the set.
- If $x = 1$, then the probability is $1 / y$ for there to be a solution.
- If $x = y - 1$, for $y > 2$, there is always a solution as either $1$ and $y - 1$, or $y$, are in the set.
- If $x = y - 2$, for $y > 4$, there is always a solution as either $2$ and $y-2$, or $1$ and $y - 1$, or $y$, are in the set.
- (... if $x > y/2$, I guess there is always a solution)
- If $x \leq y/2$, the probability for there being two values that sum to $y$ would relate to, for each value $n$ in the set, not having $y - n$ in the set. I think you would only need to multiply the probabilities for about half of the elements of the set given the symmetry (i.e., if you have considered $n$, you should not also consider $y-n$).
- The probability of there being up to three values that sum to $y$ would be the sum of the probability of there being two values that sum to $y$, plus the probability of there being three values that sum to $y$ times the probability of there not being two values that sum to $y$.
- And so forth.