Newtonian mechanics in a Riemannian manifold