Observation sequence - 2, - 1,2,7,14,23 According to this rule, what is the nth number?

Observation sequence - 2, - 1,2,7,14,23 According to this rule, what is the nth number?

It is not difficult to see that the phase difference is 2N-1
The nth number is n ^ 2-2n-1