human
Program to find Nth term of series 1 , 6 , 17 , 34 , 56 , 86 , 121 , 162 , ... ... . | calculate Nth term of series.
Driver code"
Solution in Python:

Can you provide a code to program to find Nth term of series 1 , 6 , 17 , 34 , 56 , 86 , 121 , 162 ,?
assistant
#Here is code to program to find Nth term of series 1 , 6 , 17 , 34 , 56 , 86 , 121 , 162 , .
 def nthTerm ( n ) :
	return 3 * pow ( n , 2 ) - 4 * n + 2
N = 4
print ( nthTerm ( N ) )