Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Square Spiral by jcg
import math
def coord(n) :
k = int(math.sqrt(n-1))
i = n - k**2-1
return map (lambda x : (1 - 2 * (k%2)) * (k//2 - x), (i, 0 - k%2) if i
May 30, 2014