human
Find Nth term of series 1 , 4 , 15 , 72 , 420. . . | Function to find factorial of N with recursion.
base condition.
use recursion.
calculate Nth term of series.
Driver code"
How can the above be solved in Python?

Write me a code to find Nth term of series 1 , 4 , 15 , 72 , 420?
assistant
#Here is code to find Nth term of series 1 , 4 , 15 , 72 , 420.
 def factorial ( N ) :
	if N == 0 or N == 1 :
		return 1
	return N * factorial ( N - 1 )
def nthTerm ( N ) :
	return ( factorial ( N ) * ( N + 2 ) // 2 )
N = 6
print ( nthTerm ( N ) )