human
What is a code to centered decagonal number and the other steps required given the following:
Centered decagonal number | Centered decagonal number function.
Formula to calculate nth centered decagonal number & return it into main function ..
Driver Code"
Solution in Python:
assistant
#Here is code to centered decagonal number and the other steps required.
 def centereddecagonalnum ( n ) :
	return ( 5 * n * n + 5 * n + 1 )
if __name__ == ' _ _ main _ _ ' :
	n = 5
	print ( n , " th ▁ centered ▁ decagonal ▁ " + " number ▁ : ▁ " , centereddecagonalnum ( n ) )
	n = 9
	print ( n , " th ▁ centered ▁ decagonal ▁ " + " number ▁ : ▁ " , centereddecagonalnum ( n ) )