>>951
X=1/3(r+1/r)+1/3
Y=1/3(r^2+1/r^2)+1/3
(r+1/r)^2=r^2+1/r^2+2