On an analytical solution for the damped Hertzian spring