For problem 15.1-1 in the Introduction to Algorithms book, the question asks, "Show that equation (15.4) follows from equation (15.3) and the initial condition T(0) = 1
In one of the many solutions on the internet, it shows the following transformation is a geometric series such that:
$$T(n) = 1 + \sum_{i=0}^{n-1} T(j) = 1 + \sum_{i=0}^{n-1} 2^j $$
Could someone explain how you know that T(j) is $2^{j}$ in this partial solution I found?
Several versions of the same hint.
Look at $1, 1+2, 1+2+4, 1+2+4+8, \ldots$. You should see the pattern.
Look up or remember the formula for the sum of a finite geometric series.
Think about the largest number you can represent in binary with $n$ bits.
Try to write down the straightforward induction argument.