Pascal's triangle is shown above for the row through the row, and parts of the and rows are also shown above.
What is the sum of all the elements of each row up to the row?
Note: The visible elements to be summed are highlighted in red.
Additional clarification: The topmost row in Pascal's triangle is the row. Then, the next row down is the row, and so on. The leftmost element in each row of Pascal's triangle is the element. Then, the element to the right of that is the element in that row, and so on.