We were just discussing with colleagues the number of combinations you could get with two "normal", $6$-sided dice. Almost all of my colleagues were saying $36$ ($6^2$), which I agree with as such, but you will get almost half of the possible combinations counted twice. If I count, the number of different combinations with $2$ dice is $21.$ I'm not able though to get to the formula that would let me calculate this for $3,4,5$ or more dice.
I remember from my old mathematics courses that there are several different formulas you can "pick" depending on repetition, order importance, etc... What would be the appropriate formula taking into account $n$ as the number of dice and $s$ the number of sides ?
It agrees with the number of sums $a_1+\cdots+a_s=n$ where the $a_i$ are nonnegative integers.
Here $a_i$ stands for the number of dice that show face $i$.
Applying stars and bars we find $$\binom{n+s-1}{s-1}$$possibilities.