WolframAlpha computational knowledge AI
p=20,n=10,s=6; sum (binom(n,k)*(-1)^k*(binom((p-s*k-1),( p-s*k-n))) from k=0 to Floor[(p - n)/s])