I know the answer to this sum is $$\sum_{k=0}^{i+1} \begin{pmatrix} i+1\\ k\end{pmatrix} = 2^{i+1} $$ because of pascals rule but how do I evaluate the sum to get this?
TO clarify I used binomial theorem and pascals rule to show
$$\sum_{k=0}^{i+1} \begin{pmatrix} i+1\\ k\end{pmatrix} = \sum_{k=0}^{i+1} (\begin{pmatrix} i\\ k\end{pmatrix} + \begin{pmatrix}i\\ k-1\end{pmatrix}) = \sum_{k=0}^{i+1} \begin{pmatrix} i\\ k\end{pmatrix} + \sum_{k=0}^{i+1} \begin{pmatrix}i\\ k-1\end{pmatrix}$$ and want to keep evaluating this way to get to $$2^{i+1}$$
First of all, note that for Pascal's rule ${{i+1}\choose k} = {i \choose k} + {i \choose {k-1}}$ to always work, you need to follow the convention that $n \choose k$ equals $0$ when $k < 0$ and when $k > n$. I'll be following this convention.
Look at this sum that you have on the right: $\sum_{k=0}^{i+1} {i \choose k}$. The last summand (when $k = i+1$) is ${i \choose {i+1}}$. According to the convention, this is zero. So we may omit the last summand, and your sum equals to $\sum_{k=0}^i {i \choose k}$.
In the second sum $\sum_{k=0}^{i+1} {i \choose k-1}$ the same thing happens with the first summand. For $k=0$ we have ${i \choose 0-1} = 0$. Omitting the first summand, we get the sum $\sum_{k=1}^{i+1} {i \choose k-1}$. By a change of variable this is the same as $\sum_{k=0}^i {i \choose k}$.
So the whole thing becomes $2 \cdot \sum_{k=0}^i {i \choose k}$. This is the same as what we began with, but instead of $i+1$ we have $i$, and the whole thing is multiplied by $2$.
If you go on doing this, you'll get the chain of equalities $$ \sum_{k=0}^{i+1} {i+1 \choose k} = 2 \cdot \sum_{k=0}^i {i \choose k} = 2 \cdot 2 \cdot \sum_{k=0}^{i-1} {i-1 \choose k} = \ldots = 2^{i+1} \cdot \sum_{k=0}^0 {0 \choose k} = 2^{i+1}. $$
Of course, to formalize this last step properly (the $\ldots$ in the middle), you would have to use induction.