human
Program to find Nth term of series 2 , 12 , 28 , 50 , 77 , 112 , 152 , 198 , ... . . | calculate Nth term of series.
Driver code"
How can the above be solved in Python?

Give me a code to program to find Nth term of series 2 , 12 , 28 , 50 , 77 , 112 , 152 , 198 ,?
assistant
#Here is code to program to find Nth term of series 2 , 12 , 28 , 50 , 77 , 112 , 152 , 198 , .
 def nthTerm ( n ) :
	return 3 * pow ( n , 2 ) + n - 2
N = 4
print ( nthTerm ( N ) )