human
What is a code to program to find the Nth term of the series 0 , 14 , 40 , 78 , 124 , given the following:
Program to find the Nth term of the series 0 , 14 , 40 , 78 , 124 , ... | calculate sum upto Nth term of series.
return the final sum.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to program to find the Nth term of the series 0 , 14 , 40 , 78 , 124 , .
 def nthTerm ( n ) :
	return int ( 6 * pow ( n , 2 ) - 4 * n - 2 )
N = 4
print ( nthTerm ( N ) )