Question: Let $T(n)$ be a running time that satisfies the recurrence $$T(n) = 1 + \sum_{k=0}^{n-1} T(k) \quad \text{and}\quad T(0) = 1.$$ Show that $T(n) = 2^n.$
The recurrence above can be obtained in CLRS's Introduction to Algorithms, $3$rd edition, page $364,$ where the authors discuss rod-cutting problem using Recursive top-down implementation.
Does anyone how to obtain the solution for the recurrence of $T(n)$ above?
Hint:
Set $n=m,m-1$ in $$T(n) = 1 + \sum_{k=0}^{n-1} T(k).$$
$$T(m) = 1 + \sum_{k=0}^{m-1} T(k).$$ $$T(m-1) = 1 + \sum_{k=0}^{m-2} T(k)$$
$$T(m)-T(m-1)=?$$
$$\implies T(n)=2^{n-r}T(r)$$
Set $r=0,1$ based on the initial case