Wikipedia provides a proof, but I don't understand how:
$$a^n - b^n = (a-b)(a^{n-1} + ba^{n-2} +\cdots + b^{n-1})$$
follows from
$$x^{n-1} + x^{n-2} +\cdots + x + 1 = \frac{x^n - 1}{x-1}$$
Could someone explain to me how the summation of the the geometric series explains the factorization?