looking for the formula n->(x,y)