On the mechanics of the particle on a curve without friction