This is part of a homework question, so naturally, not looking for a solution. But I have no idea how to approach the problem.
The question is: how many line segments are necessary to approximate a circle 1000 pixels in diameter, such that the approximated circle is no more than one pixel off of the true circle?
Part two is the same question for approximating a spiral $r = \theta : 0 \geq \theta \geq 6\pi$. I am told the solution is non trivial, but still would like to take a crack at it.

You will want to use a regular polygon, where the vertices are at distance (at most) $1001$ from the origin and the midpoints of the edges will be at distance (at least) $999$ from the origin. Use trigonometric functions to determine the angle covered by (half of) such an edge, and use that angle to find out how many line segments you need.