n = 31 (slider from 1 to 40, step 1)
p = 0.3 (slider from 0 to 1, step 0.01)
f(x) = n! / (x! (n - x)!) p^(x) (1 - p)^(n - x)
g(x) = f(floor(x + 0.5))
o = UpperSum(g, -0.5, n + 0.5, n + 1)
k = 11 (slider from 0 to 40, step 1)
w = UpperSum(g, -0.5 + k, -0.5 + k + 1, 1)

Tool: Bin
Input: k, p, n
Output: a

a: n! / (k! (n - k)!) p^(k) (1 - p)^(n - k)