Write a function containing an expression, in terms of n, for the nth term of the sequence that has the following first six terms:
2, 6, 13, 23, 36, 52 ...and the sequence continues.
seq(1) ➞ 2
seq(2) ➞ 6
seq(6) ➞ 52
The parameter n is always >= 0.