How to find the equations whose roots are equal to the following numbers ?
(a) $\sin^2\frac{\pi}{2n+1}$,$\sin^2\frac{2\pi}{2n+1}$,$\sin^2\frac{3\pi}{2n+1}$,...,$\sin^2\frac{n\pi}{2n+1}$
(b)$\cot^2\frac{\pi}{2n+1}$,$\cot^2\frac{2\pi}{2n+1}$,$\cot^2\frac{3\pi}{2n+1}$,...,$\cot^2\frac{n\pi}{2n+1}$
I got stuck while solving this problem.This was from a complex number chapter practice problem exercise. I tried to fit in Demoivre's theorem considering roots of unity.But no idea how to bring about the squared sine terms. Any suggestions?