X-Sums

Clues outside the grid indicate the sum of the first N cell, where N is the cell in the grid adjacent to the clue