Nessalc
- 3
- 0
The general problem I'm trying to solve is the probability of rolling a total t on n s-sided dice. A good chunk of the problem is easy enough, but where I run into difficulty is this:
How many combinations of dice will yield a sum total of t? Because the number set is limited, {a \choose n-1} (where a={n(s+1) \over 2} - \left|{n(s+1) \over 2} - t\right|) no longer works when n+s \leq t \leq (n-1)s. It is this region in the middle that interests me. Enumerating all combinations could be time-consuming, and, I expect, is entirely unnecessary. Is there a known formula for computing these numbers?
How many combinations of dice will yield a sum total of t? Because the number set is limited, {a \choose n-1} (where a={n(s+1) \over 2} - \left|{n(s+1) \over 2} - t\right|) no longer works when n+s \leq t \leq (n-1)s. It is this region in the middle that interests me. Enumerating all combinations could be time-consuming, and, I expect, is entirely unnecessary. Is there a known formula for computing these numbers?
Last edited: