The purpose of this task is to explore working with   complex numbers.



Task

Given   n,   find the   nth   roots of unity.




RootsUnity[nthroot_Integer?Positive] := Table[Exp[2 Pi I i/nthroot], {i, 0, nthroot - 1}]