A closer look at Quasi-satellite
A quasi-satellite shares a planet’s average orbital period and seems to loop around it in a rotating view.
The object is primarily orbiting the Sun. The appearance can persist for many revolutions without a gravitationally bound moon-like orbit. A horseshoe orbit appears when a co-orbiting body is plotted in a frame rotating with a planet or moon.
Plot the same object first in a Sun-centered frame and then in a frame following Earth. Two very different-looking tracks can describe one trajectory. For the surrounding ideas, see Sphere of influence in astrodynamics.
Want to learn more about Quasi-satellite? Quasi-satellite on Wikipedia.

