$z^3-7z^2+14z-7=0$
I tried simplifying it to $z^3-7(z-1)^2=0$, but I don't think i can proceed from there. It sort of looked like geometric progression but it is not that either, and I don't see any other approach here. Apparently roots are $4\cos^2(\frac{\pi}{14})$, $4\cos^2(\frac{3\pi}{14})$,$4\cos^2(\frac{9\pi}{14})$, but I don't know how to get them.
Thanks for help.

Let $z=aw+b$. The equation turns to
$$a^3w^3+(3ba^2-7a^2)w^2+(3ab^2-14ab+14a)w+b^3-7b^2+14b-7=0.$$
Now, cancel the quadratic coefficient. This is achieved by $3b=7$, and
$$a^3w^3-\frac73aw+\frac7{27}=0.$$
Next, ensure that the ratio of the cubic coefficient over the linear one is $-\dfrac43$. This is achieved by
$$a=\frac{\sqrt{28}}3,$$
and
$$\frac{28}9\frac{\sqrt{28}}3w^3-\frac73\frac{\sqrt{28}}3w+\frac7{27}=0$$ or
$$4w^3-3w=-\frac1{\sqrt{28}}.$$
Finally, setting
$$w=\cos\theta,$$
$$4\cos^3\theta-3\cos\theta=\cos 3\theta=-\frac1{\sqrt{28}}$$ gives you the roots.