How to calculate how many possible sets of numbers there are when they all must total to the same amount?

From a quick calculation, I think there are 38125 possibilities, which wouldn’t take long for a program to find all of.
First, I’ve just realised a mistake, and the actual answer is 8801. I used WolframAlpha to help, I typed in ‘5d11=30’ and looked at the resulting fraction. 5d11 means rolling 5 11-sided dice, since there are 5 numbers, each with 11 possible values. Setting this equal to 30 will find how combinations give this value. I used 30 because the dice values go from 1 to 11, not 0 to 10, so I added 1 for each dice. I hope this makes sense.

It’s quite difficult to work out how many combinations give a desired total by hand, I think you’d literally have to check each combination individually.
Edit: I missed a key requirement in the question.

~~This can be solved by reframing the problem a couple of times.~~

~~Firstly, imagine you have a string of 25 red beads. You must make four cuts, dividing the string into five strings of red beads (where a string can have any number of red beads, including zero). The number of ways of doing this will be the same as the answer to your question (can you see why?).~~

~~Now join the string together again, except that at each join, put a blue bead. You now have a string of 29 beads, 25 red and 4 blue. The number of different permutations of these 25 red and 4 blue beads is the same as the answer to your question (can you see why?).~~

~~(For the next part, it sometimes helps to imagine that each of the red beads is a different shade of red, and each of the blue beads is a different shade of blue).~~

~~The answer to the bead permutations is the number of permutations of the full 29 beads, divided by the number of permutations of the 25 red beads, divided by the number of permutations of the 4 blue beads.~~

~~This is 29! / (25! . 4!), which simplifies to \
(29 x 28 x 27 x 26) / ( 4 x 3 x 2 x 1) \
= 23,751~~

~~All this assumes that the numbers can be anything, not just divisible by five. Your examples have all the numbers divisible five. If I’m wrong you can simplify by thinking of it as a string of five (25/5) red beads.~~

0 like 0 dislike