solve 1-(1-p)^9 = 0.5 for p