human
Find the Nth term in series 12 , 35 , 81 , 173 , 357 , ... | Function to find Nth term.
Nth term.
Driver Method"
Solution in Python:
assistant
#Here is code to find the Nth term in series 12 , 35 , 81 , 173 , 357 , .
 def nthTerm ( N ) :
	nth = 0 ; first_term = 12 ;
	nth = ( first_term * ( pow ( 2 , N - 1 ) ) ) + 11 * ( ( pow ( 2 , N - 1 ) ) - 1 ) ;
	return nth ;
if __name__ == " _ _ main _ _ " :
	N = 5 ;
	print ( nthTerm ( N ) ) ;