human
Program to find Nth term of series 4 , 14 , 28 , 46 , 68 , 94 , 124 , 158 , ... . . | calculate Nth term of series.
Driver code"
How can the above be solved in Python?
 ... Write me a code to program to find Nth term of series 4 , 14 , 28 , 46 , 68 , 94 , 124 , 158 ,?
assistant
#Here is code to program to find Nth term of series 4 , 14 , 28 , 46 , 68 , 94 , 124 , 158 , .
 def nthTerm ( n ) :
	return 2 * pow ( n , 2 ) + 4 * n - 2
N = 4
print ( nthTerm ( N ) )