Spiral: Mapping from the natural numbers to interger co-ords

To figure out how the equation for the complex number t works, click on the slider and use the keyboard cursor to slowly increase the value of a. As a increases, try to figure out the relevance of p and q in the formula for t.