It is known that the probability of event a in a test is p (0

It is known that the probability of event a in a test is p (0

(1-p)^n+(1-p)^(n-1)p