I have a problem with this calculation. I don't understand the step from the second to the third line in the calculation. I just can't bring out the $(x^{n}-1)$. It is always $x^n$ when I calculate it? Could anyone show me how to calculate this step?
Thanks!