Evaluate $$T(n)=2T(n-1)+1$$ $T(1)=1$
$$T(n)=2T(n-1)+1$$ $$T(n-1)=2T(n-2)+1$$ $$T(n-2)=2T(n-3)+1$$
So $$T(n)= 2(2(2T(n-3)+1)+1)+1...=2^{k}T(n-k)+2^{k-1}+2^{k-2}+...+1$$
for $$2^{k-1}+2^{k-2}+...+1=\frac{1(2^{k-1}-1)}{2-1}=2^{k-1}-1$$
$$T(n)=2^{k}T(n-k)+2^{k-1}-1$$
How to approach this? use $T(n-k)=1$ to get $T(n)=2^k+2^{k-1}-1$?
If $T(n)=2^n-1$, $T(n)=2T(n-1)+1$ and $T(1)=1$ is satisfied. Obviously, the $T(n)$ is unique, so this is the one and only solution to this problem.