Apply properties of roots of unity (#663)

Apply properties of roots of unity (#663)

Use sum of all nnth roots = 0, product = (−1)n−1(-1)^{n-1}, etc.