Can someone please prove this?
$$\forall x \in \mathbb{Z^+}, x \neq 1 \implies \left(\forall n \in \mathbb{N}, \sum_{i=0}^{n-1}{x^i}=\frac{x^n-1}{x-1}\right) $$
I'm confused over whether to add $x^k$ or $x^{k+1}$ to the right hand side and have gotten nowhere in both cases. Just can't factor it out like the rest of them. It would be much appreciated if someone could point me in the right direction.
Note: This is cleary a different one from Proving the geometric sum formula by induction so please stop down-voting.