For one of the questions in my statistics textbook, the last step of the solution is
$$ {m \choose x} (pr)^x (1 - rp)^{m-x} \sum_{t=0}^{k} {k \choose t} \bigg( \frac{r - rp}{1 - rp} \bigg)^t \bigg( \frac{1 - r}{1 - rp} \bigg)^{k-t} $$
$$ = {m \choose x} (pr)^x (1 - rp)^{m-x} $$
which implies that
$$ \sum_{t=0}^{k} {k \choose t} \bigg( \frac{r - rp}{1 - rp} \bigg)^t \bigg( \frac{1 - r}{1 - rp} \bigg)^{k-t} = 1 .$$
I know that $\sum_{t=0}^{k} {k \choose t} = 2^k$ but other than that I'm not sure how to proceed.
Binomial expansion: $$(a + b)^n = \sum_{t=0}^n {n \choose t} a^t b^{n-t}$$ Notice in your case $a + b =1$.