human
Find Nth term of the series 1 , 6 , 18 , 40 , 75 , ... . | Function to generate a fixed number.
( N ^ 2 * ( N + 1 ) ) / 2.
Driver code"
Solution in Python:
 ... Write me a code to find Nth term of the series 1 , 6 , 18 , 40 , 75 ,?
assistant
#Here is code to find Nth term of the series 1 , 6 , 18 , 40 , 75 , .
 def nthTerm ( N ) :
	nth = 0
	nth = ( N * N * ( N + 1 ) ) // 2
	return nth
N = 5
print ( nthTerm ( N ) )