Originally Posted by

**Wilmer** If I roll four six-sided dice and add up the three highest, I will generate a number

from 3 to 18. There are 1296 (6^4) combinations possible. I want to calculate how

many combinations will add up to each of the possible totals.

By brute force methods I've determined that the distribution is as follows:

Result, # of combinations yielding that result

3 1

4 4

5 10

6 21

7 38

8 62

9 91

10 122

11 148

12 167

13 172

14 160

15 131

16 94

17 54

18 21

Although I can determine the distribution by brute force, I'm trying to find a method of

calculating a certain sum: like, a formula that would give 91 as solution to sum of 9.

Is it possible?