Hello, wolfyparadise!

What is the expectation of the number of failures preceding first success

in an infinite series of independent trials with constant probability of success in each trial?

Let: .

We have: .

Hence: .

. .

. . The sum of the geometric series is: .

So we have: .

. . Then: .

But

. . Therefore: .