On the periodic motions of dynamical systems