Probability, Statistics, Distributed Systems, Software Engineering, Interview Questions.
probability that the k-th attempt succeeded = (1-p)^N Probability replication was successfull in k-th attempt = (1-(1-p)^N)^(k-1)*(1-p)^N Letting (1-p)^N = q Probability replication was successfull in k-th attempt P(k) = (1-q)^(k-1)*q Expectation E = 1*P(1) + 2*P(2) + 3*P(3) + ….. infinite series E