I know the binomial expansion formula:
$$ (1 + x)^n = \sum_{k = 0}^{n} {n \choose k}x^k $$ However, I am trying to find (if there is any) a closed-form solution for the following equation. $$ \sum_{k = 0}^{n} Q^{k} ( 1 - Q) ^ {k} $$ Could you guys point me to some solutions? TIA.
Use the geometric series $\sum_{k=0}^nr^k=\frac{1-r^{n+1}}{1-r}$ with $r=Q(1-Q)$ to get $\frac{1-Q^{n+1}(1-Q)^{n+1}}{1-Q+Q^2}$.