human
Can you provide a code to program to find Nth term of the series 3 , 12 , 29 , 54 , 87 , given the following:
Program to find Nth term of the series 3 , 12 , 29 , 54 , 87 , ... | calculate Nth term of series.
Return Nth term.
driver code.
declaration of number of terms.
Get the Nth term"
How can the above be solved in Python?
assistant
#Here is code to program to find Nth term of the series 3 , 12 , 29 , 54 , 87 , .
 def getNthTerm ( N ) :
	return 4 * pow ( N , 2 ) - 3 * N + 2
if __name__ == ' _ _ main _ _ ' :
	N = 10
	print ( getNthTerm ( N ) )