human
Find Nth term of the series 2 , 3 , 10 , 15 , 26. ... | Function to find Nth term.
Nth term.
Driver Method"
Solution in Python:
assistant
#Here is code to find Nth term of the series 2 , 3 , 10 , 15 , 26.
 def nthTerm ( N ) :
	nth = 0 ;
	if ( N % 2 == 1 ) :
		nth = ( N * N ) + 1 ;
	else :
		nth = ( N * N ) - 1 ;
	return nth ;
if __name__ == " _ _ main _ _ " :
	N = 5 ;
	print ( nthTerm ( N ) ) ;