A ball is launched upward from the ground at an initial vertical speed of v0 and begins bouncing vertically. Every time it rebounds, it loses a proportion of the magnitude of its velocity due to the inelastic nature of the collision, such that if the speed just before hitting the ground on a bounce is v, then the speed just after the bounce is rv, where r < 1 is a constant. Calculate the total length of time that the ball remains bouncing, assuming that any time associated with the actual contact of the ball with the ground is negligible.
(A) 2v0/g 1/1 - r
(B) v0/g r/1 - r
(C) 2v0/g 1- r/r
(D) 2v0/g 1/1 - r2
(E) 2v0/g 1/1 + (1 - r)2