human
Octadecagonal Number | Function to find N - th octadecagonal number.
Formula to calculate nth octadecagonal number.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to octadecagonal Number and the other steps required.
 def Octadecagonal_num ( n ) :
	return ( 16 * n * n - 14 * n ) / 2
n = 3
print ( int ( Octadecagonal_num ( n ) ) )
n = 10
print ( int ( Octadecagonal_num ( n ) ) )