It wonder with a finite series
$$y = x^0 + x^1 + x^2 + ... x^{n-1}$$
can be formulate into $$\frac{x^n - 1}{x - 1}$$
But I don't understand why $x^n - 1$ could be divide by $x-1$ and always be an integer. What is the relation between $x^a - 1$ and $x - 1$. It seem like a mystery
Are there any proof, if possible a visual proof, that would make it easy to understand this relation?