Define $$p(x)= \sum_{i=1}^{n+1}2^{i}\cdot\frac{\prod_{j=1,j\neq i}^{n+1}(x-j)}{\prod_{j=1,j\neq i}^{n+1}(i-j)}.$$
Find $p(n+2)$.
The polynomial is rather complicated. I tried but can not succeed.
According to my teacher, the result is $2^{n+2}-1$.
But how we can prove it.
Show that $p$ is of degree at most $n$ and that $p(i)=2^i$ for $i=1,2,\ldots,n+1$. Let $q(x):=2 \,\sum_{r=0}^n\,\binom{x-1}{r}$. Prove that $p=q$ and $q(n+2)=2^{n+2}-2$. Either you copied the problem incorrectly or your teacher is wrong.