human
Find the Nth term of the series 9 , 45 , 243 , 1377 | Function to return the nth term of the given series.
nth term.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to find the Nth term of the series 9 , 45 , 243 , 1377 and the other steps required.
 def nthterm ( n ) :
	An = ( 1 ** n + 2 ** n ) * ( 3 ** n )
	return An ;
n = 3
print ( nthterm ( n ) )