The setting
I know how to calculate the number of combinations for any given sum and side of a dice but i wanted to caculate the number of combination for any given sum with a dice starting not a one but at two and still ending at six.
I visualized the problem as a set problem with a venn diagram.
I first computed the number of combination giving me the sum T using t six sided dices ( = the common formula).
Then i realized that any combinations including a one and giving me a sum T had to have an intermediary sum of T-1 with t-1 dices.
So I first computed the number of combinations giving me T with t dices and then I deduced the number of computations giving me T-1 with t-1 dices :
$$P(t,s,T)=( \sum_{k=0}^{\lfloor{\frac{T-t}{s}}\rfloor} (-1)^k * \frac{n!}{(n-k)!k!}\frac{(T-s*k-1)!}{(T-s*k-n)!*(n-1)!}-?*\sum_{k=0}^{\lfloor{\frac{T-t}{s}}\rfloor} (-1)^k * \frac{n!}{(n-k)!k!}\frac{(T-s*k-2)!}{(T-1-s*k-n)!*(n-1)!}) *(\frac{1}{s})^t$$
Where:
=number of rolls
=number of cards
=total value
?= what i need help to find
The problem
The difficulty arise when i have to multiply the number of combinations giving me T-1 with t-1 side to find the number of combinations they birthed with t dices.
I m really stuck and I'm now at the point where I have cut sheet of paper in tiny bits to visualize all of this and my desk is an absolute mess.
Really a huge thanks for any help !!