
\[z^{n}-1=(z-1)(z^{n-1}+z^{n-2}+\dots+z+1)=0\]