solve (1 d^2)^18 (2 ((1 d)/2 cos(pi/18))^18)=(1 d)^18 d