human
Program to find the Nth term of the series 3 , 7 , 13 , 21 , 31. ... . | Function to calculate sum.
Return Nth term.
driver code.
declaration of number of terms.
Get the Nth term"
How can the above be solved in Python?

Give me a code to program to find the Nth term of the series 3 , 7 , 13 , 21 , 31?
assistant
#Here is code to program to find the Nth term of the series 3 , 7 , 13 , 21 , 31.
 def getNthTerm ( N ) :
	return ( pow ( N , 2 ) + N + 1 )
if __name__ == ' _ _ main _ _ ' :
	N = 11
	print ( getNthTerm ( N ) )