For $z^2=1$ there is a formula. But for powers higher than two I do not know what to do.
I was trying to replace $z$ by $a+ib$ and calculate the cube. This probably works. But then problem is that the next exercise I have to do is to solve $z^6=1$. There must be a smarter way.
Kind regards,
The solutions are evenly spaced around a circle of radius one, so you can use sin and cos for this. The solutions to $z^n = 1$ are
$$ z = \cos\left(\frac{i}{n} 2 \pi\right) + i \sin\left(\frac{i}{n} 2 \pi\right)$$ where $i$ takes on the value $0$ up to $n-1$.