Periodic relative motion of formation flying satellites