Calculate the sum of the first n terms in the sequence: 2 + 5 + 10 + 17 + 26 + \ldots
A natural number n, where 1 \leq n \leq 100.
A single number representing the sum of the first n terms of the sequence.
Example 1