I'm trying to build a formula that accurately describes the probabilities of each of the sums that can be produced from rollings dice together and adding up their results.
For example, if I roll 2d6, or two d6 dice with their values added up, the probabilities of each possible result can be described by this table:
\begin{array}{|l|l|} \hline Roll & Probability \\ \hline 2 & 1/36 \\ \hline 3 & 2/36 \\ \hline 4 & 3/36 \\ \hline 5 & 4/36 \\ \hline 6 & 5/36 \\ \hline 7 & 6/36 \\ \hline 8 & 5/36 \\ \hline 9 & 4/36 \\ \hline 10 & 3/36 \\ \hline 11 & 2/36 \\ \hline 12 & 1/36 \\ \hline \end{array}
Similarly, were I to roll 3d6, or three d6 dice with their values added up, these probabilities can be represented like this:
\begin{array}{|l|l|} \hline Roll & Probability \\ \hline 3 & 1/216 \\ \hline 4 & 3/216 \\ \hline 5 & 6/216 \\ \hline 6 & 10/216 \\ \hline 7 & 15/216 \\ \hline 8 & 21/216 \\ \hline 9 & 25/216 \\ \hline 10 & 27/216 \\ \hline 11 & 27/216 \\ \hline 12 & 25/216 \\ \hline 13 & 21/216 \\ \hline 14 & 15/216 \\ \hline 15 & 10/216 \\ \hline 16 & 6/216 \\ \hline 17 & 3/216 \\ \hline 18 & 1/216 \\ \hline \end{array}
The problem is that I arrived at these values manually, by building tables of possible rolls and accumulating the number of rolls that result in a given sum. This quickly becomes infeasible for larger numbers of rolls. So I'd like to know how to generalize this formula for arbitrary (but specific and predetermined) numbers of dice.
I'd also like to know this formula for non-cubic dice (rolling several regular d8 dice, for example), and, if possible, Heterogeneous Dice (like a d8 rolled with a d6, for example).