human
What is a code to program to find the Nth number of the series 2 , 10 , 24 , 44 , 70 given the following:
Program to find the Nth number of the series 2 , 10 , 24 , 44 , 70. ... . | Function for calculating Nth term of series.
return nth term.
Driver code.
Function Calling"
Solution in Python:
assistant
#Here is code to program to find the Nth number of the series 2 , 10 , 24 , 44 , 70.
 def NthTerm ( N ) :
	x = ( 3 * N * N ) % 1000000009
	return ( ( x - N + 1000000009 ) % 1000000009 )
if __name__ == " _ _ main _ _ " :
	N = 4
	print ( NthTerm ( N ) )