The trick is Euler's formula:
$$e^{i \theta}=\cos(\theta)+i\sin(\theta).$$
Multiplying by a factor of $r>0$ you get the polar form of a general complex number: $r e^{i \theta}=r \cos(\theta) + ir\sin(\theta)$.
This form is really nice for roots, because the rules for exponents of real numbers carry over here, with some caveats. For instance, let's look at $\sqrt[3]{-1+i}$. One way to write $-1+i$ would be $\sqrt{2} e^{i 3 \pi/4}$. If you now take its third root in this form, you use the exponent rules and get $\sqrt[3]{-1+i}=2^{1/6} e^{i \pi/4}$. For consistency with the rest of this answer let me rewrite this as:
$$\sqrt[3]{-1+i}=2^{1/6} e^{i 3 \pi/12}.$$
But there are two more. We can find them by introducing an initially superfluous factor of $1$. For one of them, $-1+i=\sqrt{2} e^{i 3 \pi/4} e^{i 2 \pi}$. This last term doesn't do anything initially, but when we use the exponent rules, we get a different third root, namely
$$\sqrt[3]{-1+i}=2^{1/6} e^{i \pi/4} e^{i 2 \pi/3} = 2^{1/6} e^{i 11 \pi/12}.$$
We can do it one more time: starting from $\sqrt{2} e^{i 3 \pi/4} e^{i 4 \pi}$ we get
$$\sqrt[3]{-1+i}=2^{1/6} e^{i \pi/4} e^{i 4 \pi/3} = 2^{1/6} e^{i 19 \pi/12}.$$
If we do it again, what we get will be the first root multiplied by $e^{i 2 \pi}$...which is exactly the first root again! So there are only three third roots. In general there are $n$ nth roots.
$ \sqrt[8]{z}[ cos(\frac {3\pi + 8 \pi k}{16}) + isin(\frac {3\pi + 8 \pi k}{16})] $ – Saad Aleem Apr 18 '15 at 22:34