An operation succeeds with probability p each independent try. Return the probability the first success happens on attempt exactly k.
p
k
Input
p = 0.3 k = 3
Output
0.14699999999999996
This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.
solve(...)