Gravitation problem involving aphelion and perihelion