For recursive algorithms in computing and in mathematics, a recurrence expansion expands out each recursive term as a sum of the next terms.
For example, say we have a recursive algorithm that successively takes in half of the input array until we reach .
How many do we end up having? Since we need the number as a result of dividing by 2 to get , we get: