Observation - what is the nth number of 1,2,7,14,23,34 rule

Observation - what is the nth number of 1,2,7,14,23,34 rule

N^2 - 2