Sum of Terms in a Sequence