Suppose that $T(0) = 1$ and define $T(n)$ as follows $$ T(n) = 1 + \sum_{j=0}^{n-1} T(j) $$ Show that $T(n) = 2^n$.
If I substitute values, I can see that the sequence goes like $1, 2, 4, 8, \dotsc$, that is that they are powers of $2$.
But how do I mathematically prove it? Any hints should be good too.
We have $$T(n+1) = 1+\sum_{k=1}^n T(k) = \left(1 + \sum_{k=1}^{n-1} T(k) \right) + T(n) = T(n) + T(n) = 2T(n)$$ Hence, we have $$T(n+1) = 2T(n) = 2^2 T(n-1) = 2^3 T(n-2) = \cdots = 2^n T(1) = 2^{n+1} T(0) = 2^{n+1}$$