Full question:
Show that $(1+x)^n = \binom{n}{0}+\binom{n}{1}x+\binom{n}{2}x^2+....+\binom{n}{n-1}x^{n-1}+\binom{n}{n}x^n$.
Hence deduce that $\binom{n}{0}+\binom{n}{1}+\binom{n}{2}+....+\binom{n}{n-1}+\binom{n}{n}=2^n$.
The preceding subquestions asked me to write down the first 5 rows of Pascal's triangle, to find the sum of the numbers in rows 1, 2, 3, 4 and 5, and to copy and complete: "The sum of the numbers in row n of Pascal's triangle is......"
I wrote down the first 5 rows of Pascal's triangle, in the same form as the triangle. Obviously the very first row is the zeroth row, so that had to be taken into account.
The sum of the numbers in said rows was $2$ (row 1), $4$ (row 2), $8$ (row 3), $16$ (row 4) and $32$ (row 5), leading me to state that the sum of the numbers in row n of Pascal's triangle is equal to $2^n$.
What I think may be useful here is the formula
$(a+b)^n = a^n + \binom{n}{1}a^{n-1}b +....+\binom{n}{r}a^{n-r}b^r+....+b^n$ where $\binom{n}{r}$ is the binomial coefficient of $a^{n-r}b^r$ and $r = 0, 1, 2, 3,....,n.$
I can kind of see how this relates, but not quite.
This can be done with induction, I will show the inductive step only
$(1+x)^{n+1} = (1+x)(1+x)^n = (1+x)(\binom{n}{0}+\binom{n}{1}x+\binom{n}{2}x^2+....+\binom{n}{n-1}x^{n-1}+\binom{n}{n}x^n)$
$=\binom{n}{0} + \binom{n}{n}x^{n+1} + \sum_{k=1}^n x^k(\binom{n}{k} + \binom{n}{k-1}) $
$\binom{n}{k} + \binom{n}{k-1} = \frac{n!}{k!(n-k)!} + \frac{n!}{(k-1)! (n-k+1)!} = n!(\frac{n-k+1}{k!(n-k+1)!} + \frac{k}{k!(n-k+1)!})$
$=n! \frac{n+1}{k!(n-k+1)!} = \binom{n+1}{k}$ which is the coefficient of $x^k$ in the $\sum$ above.
i.e. $(1+x)^{n+1} = 1 + x^{n+1} + \sum_{k=1}^{n}x^k \binom{n+1}{k}$
Setting $x=1$ in $(1+x)^n = 2^n = \binom{n}{0}+\binom{n}{1}+\binom{n}{2}+....+\binom{n}{n-1}+\binom{n}{n}$