Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Generatingfunctionology solution in Speedy category for Probably Dice by veky
probability,C=lambda n,s,t:sum((-1)**k*C(n,k)*C(t-k*s-1,n-1)for k
in range(1+(t-n)//s))/s**n,lambda n,k:n*C(n-1,k-1)//k if k else 1
June 11, 2014
Comments: