There is the following equation in a text I am reading
$$ \sum_{n=0}^\infty (1 - x) x^k = 1. $$
I would like to know where does the identitity come from.
Is it from some telescopic property, e.g., \begin{align} \sum_{k=0}^\infty(1 - x) x^k &= \sum_{k=0}^\infty(1 - x) x^k\\ &= \sum_{k=0}^\infty x^k - x^{k+1}\\ &= [(x^0 - x^1) + (x^1 - x^2)] \sum_{k=2}^\infty x^k - x^{k+1}\\ &= [(x^0 - x^2)] \sum_{k=2}^\infty x^k - x^{k+1}\\ &= 1 - x^2 \sum_{k=2}^\infty x^k - x^{k+1}, \end{align}
which, in the limit $x \to \infty$, would render the sum 0?
As can be seen from @qbert's answer, this seems to be a particular case of Value of $\sum\limits_n x^n$, where we want to calculate
$$(1-x)\sum_n x^n,$$
for $|x| < 1$.