Periodic orbits of a dynamic system related to a knot