human
Find the Nth term of the series 2 , 15 , 41 , 80 , 132. . . | Recursive function to find Nth term.
Base Case.
Recursive Call according to Nth term of the series.
Driver Code.
Input Nth term.
Function call"
How can the above be solved in Python?
assistant
#Here is code to find the Nth term of the series 2 , 15 , 41 , 80 , 132.
 def nthTerm ( N ) :
	if ( N == 1 ) :
		return 2
	return ( ( N - 1 ) * 13 ) + nthTerm ( N - 1 )
if __name__ == ' _ _ main _ _ ' :
	N = 17
	print ( nthTerm ( N ) )