The sum equals . This comes directly from the geometric series formula with and .
For instance, . This pattern appears when analyzing binary trees (sum of nodes at all levels) or counting subsets (total number of subsets of size ).
Notice: the sum of all powers of up to is one less than the next power. This relationship is why binary representations work the way they do.