human
Program to find N | Return n - th number in series made of 3 and 5.
create an array of size ( n + 1 ).
If i is odd.
Driver code"
Solution in Python:
 Write me a code to program to find N and the other steps required?
assistant
#Here is code to program to find N and the other steps required.
 def printNthElement ( n ) :
	arr = [ 0 ] * ( n + 1 ) ;
	arr [ 1 ] = 3
	arr [ 2 ] = 5
	for i in range ( 3 , n + 1 ) :
		if ( i % 2 != 0 ) :
			arr [ i ] = arr [ i // 2 ] * 10 + 3
		else :
			arr [ i ] = arr [ ( i // 2 ) - 1 ] * 10 + 5
	return arr [ n ]
n = 6
print ( printNthElement ( n ) )