In a single toss of fair (evenly-weighted) -sided dice, I want to find the probability of that their sum will be at most 9.
So at first I did:
$$\frac{\sum_{i=2}^{9}\binom{12}{i}}{\sum_{i=2}^{12}\binom{12}{i}}$$
But I'm so prone to do mistakes in these kind of equations, and that looked to complicated to compute so I did a boolean array of whether the sum was <= 9
1 2 3 4 5 6
1 y y y y y y
2 y y y y y y
3 y y y y y y
4 y y y y y n
5 y y y y n n
6 y y y n n n
I thought the answer would have been the number of n (30) divided by all combinations (36). But it was the wrong answer.