computes the pmf of the distribution f(x) = p(1-p)^(x) for x>=0, 0 otherwise
the probability
the value to evaluate