$a_i$ are the n-th roots of $1\in\mathbb{C}$, why does $(1-a_2)\cdot…\cdot(1-a_n)=n$?

For $$1, let $$a_i$$ be the n-th roots of $$1\in\mathbb{C}$$, why does $$(1-a_2)\cdot...\cdot(1-a_n)=n$$?

$$z^n - 1 = (z-1)(z^{n-1} + \cdots + z + 1) = (z-1)\prod_{i=2}^n(z-a_i)$$
$$\Rightarrow z^{n-1} + \cdots + z + 1 = \prod_{i=2}^n(z-a_i) \stackrel{z=1}{\Rightarrow} n = \prod_{i=2}^n(1-a_i)$$
• In the first equation in the second $=$ sign, why does $z^{n-1}+...+z+1=(z-a_2)\cdot\dots\cdot (z-a_n)$? – J. Doe Mar 20 at 15:29
• @J.Doe : The equality in the first line holds because of the fundamental theorem of algebra: en.wikipedia.org/wiki/Fundamental_theorem_of_algebra . The second line follows for $z \neq 1$. But as we have polynomials on both sides which are equal for all $z \neq 1$, then they are also equal for $z = 1$. (Note that two polynomials of degree $m$ are identical iff they are equal at $m+1$ points $z_0, \ldots , z_m$) – trancelocation Mar 20 at 16:33
L'hopital's (sp?) rule applied to $$\lim_{x \to 1} \dfrac{x^n-1}{x-1}$$.