human
Write me a code to centered Octagonal Number and the other steps required given the following:
Centered Octagonal Number | Function to find centered octagonal number.
Formula to calculate nth centered octagonal number.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to centered Octagonal Number and the other steps required.
 def cen_octagonalnum ( n ) :
	return ( 4 * n * n - 4 * n + 1 )
if __name__ == ' _ _ main _ _ ' :
	n = 6
	print ( n , " th ▁ Centered " , " octagonal ▁ number : ▁ " , cen_octagonalnum ( n ) )
	n = 11
	print ( n , " th ▁ Centered " , " octagonal ▁ number : ▁ " , cen_octagonalnum ( n ) )