sum of p^(k-1) * (1 - p) * k * b with k from 0 to infinity