What is the probability of when four dice rolled together once,and getting a sum of Thirteen
If we do by just calculating all possible values of sum, then it will take more time; so we can solve the above problem as Multinomial Coefficents of sum, i.e.: $$ x_1+x_2+x_3+x_4 = 13\;\text{ where },1\leq x_i \leq 6\;\;\forall\;1\leq i \leq 4. $$ I got stuck that form the above equation how can we obtain $N_{\text{ways to get $\sum=13$}}$ or is there any easy method to find this kind of problems?
Consider the polynomial $u(x)=(x+x^2+\cdots+x^6)^4$. The number of ways to get $13$ is $N=[x^{13}]u(x)$, that is, the coefficient of $x^{13}$ in $u(x)$. To compute $N$, note that $u(x)=x^4(1-x^6)^4v(x)$ where $v(x)=(1-x)^{-4}$ and that $x^4(1-x^6)^4$ equals the sum of $x^4-4x^{10}$ and of some terms of degree at least $16$.
Hence $N=[x^9]v(x)-4[x^3]v(x)$. Now, $6v(x)$ is the third derivative of the series $(1-x)^{-1}=\sum\limits_{n}x^n$ hence, for every $n$, $[x^n]v(x)={n+3\choose 3}$.
Finally, the probability to get $13$ is $$ \frac1{6^4}N=\frac1{6^4}\left({12\choose 3}-4{6\choose 3}\right)=\frac{35}{324}. $$