Question 30
You walk a spiraling maze on the Cartesian plane as follows: starting at $(0,0)$ and the first five stops are at $A(1,0)$, $B(1,1)$, $C(0,1)$, $D(-1,1)$ and $E(-1,0)$. Your ninth stop is at the point $(2,-1)$ and so on (see the diagram below). What is the $x$-coordinate of the point which you would arrive at on your $2005$-th stop?

