I am wondering what the final form of:
$$ \sum_{j=0}^{N} {N\choose j} \left(\frac{c}{N}\right)^j\left(\frac{N-c}{N}\right)^{N-j} $$ where $c\in \mathbb{N}$ here is a constant smaller than $N$.
would be. Is there an easy way to do this? thanks
I am wondering what the final form of:
$$ \sum_{j=0}^{N} {N\choose j} \left(\frac{c}{N}\right)^j\left(\frac{N-c}{N}\right)^{N-j} $$ where $c\in \mathbb{N}$ here is a constant smaller than $N$.
would be. Is there an easy way to do this? thanks
This is an instance of the binomial theorem:
$$\sum_{j=0}^N\binom{N}j\left(\frac{c}N\right)^j\left(\frac{N-c}N\right)^{N-j}=\sum_{j=0}^N\binom{N}j\left(\frac{c}N\right)^j\left(1-\frac{c}N\right)^{N-j}=\left(\frac{c}N+\left(1-\frac{c}N\right)\right)^N=1\;.$$
Added in response to a comment: We can use the identity $j\binom{N}j=N\binom{N-1}{j-1}$ to write
$$\begin{align*} \sum_{j=0}^Nj\binom{N}j\left(\frac{c}N\right)^j\left(\frac{N-c}N\right)^{N-j}&=N\sum_{j=0}^N\binom{N-1}{j-1}\left(\frac{c}N\right)^j\left(\frac{N-c}N\right)^{N-j}\\ &=N\sum_{j=0}^{N-1}\binom{N-1}j\left(\frac{c}N\right)^{j+1}\left(\frac{N-c}N\right)^{N-1-j}\\ &=N\cdot\frac{c}N\sum_{j=0}^{N-1}\binom{N-1}j\left(\frac{c}N\right)^j\left(\frac{N-c}N\right)^{N-1-j}\\ &=c\left(\frac{c}N+\frac{N-c}N\right)^N\\ &=c\;. \end{align*}$$