Defaults are h = 2.0 m, e = 0.80 (an elastic rubber ball), g = 9.81 m/s² (Earth) and n = 5. For e < 1 the total time T and total path D converge to finite values as the sums of geometric series.
Brown band = floor / blue parabolas = each bounce (left to right, n bounces) / yellow dots = apex of each bounce / white labels = apex height [m] / x-axis is purely a layout offset (real horizontal motion is zero)
X = bounce count n (0 to 30) / Y = bounce height h_n = h e^(2n) [m] / blue curve = current e / faint curves = e = 0.5, 0.7, 0.9 reference / yellow dot = current n marker
Newton defined the coefficient of restitution $e$ as the ratio of relative speeds before and after a collision; it captures how much kinetic energy a single impact dissipates.
Impact velocity (free fall):
$$v_0 = \sqrt{2gh}$$Apex height after the $n$-th bounce and the impact velocity at bounce $n$:
$$h_n = h\,e^{2n},\qquad v_n = v_0\,e^{n}$$Geometric-series totals for total bounce time $T$ and total vertical path $D$ (convergent for $e<1$):
$$T = \frac{2v_0}{g}\cdot\frac{1+e}{1-e},\qquad D = h\cdot\frac{1+e^2}{1-e^2}$$Here $h$ is the initial drop height [m], $g$ the gravitational acceleration [m/s²], and $e$ the coefficient of restitution ($0 \le e \le 1$). $e=1$ is perfectly elastic, $e=0$ is perfectly inelastic. A typical rubber ball gives $e\approx 0.8$ and a golf ball $\approx 0.78$.