Horizontal velocity = u
Height of the step = h
Let the ball hit the nth step.
Therefore the ball transverses a horizontal distance of nb and falls vertically by nh.
Equation of trajectory of horizontal projectile,
Substituting y = nh and x = nb, we get,