n-th roots of unity (1) are the complex numbers that satisfy the equation,
zn=1. There are n distinct solutions.
z=exp(i(n2mπ))wherem∈Z∪[0,n)
The solution can be written as 1,w,w2,w3,…,wn−1.
1 is called the trivial solution. Other solutions are called as primitive
n-th roots.