human
Find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 + ... | calculate Nth term of given series.
Driver code"
How can the above be solved in Python?
 Give me a code to find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 +?
assistant
#Here is code to find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 + .
 def Nth_Term ( n ) :
	return ( 2 * pow ( n , 3 ) - 3 * pow ( n , 2 ) + n + 6 ) // 6
N = 8
print ( Nth_Term ( N ) )