human
Centered cube number | Centered cube number function.
Formula to calculate nth Centered cube number return it into main function ..
Driver Code"
Solution in Python:
 Write me a code to centered cube number and the other steps required?
assistant
#Here is code to centered cube number and the other steps required.
 def centered_cube ( n ) :
	return ( 2 * n + 1 ) * ( n * n + n + 1 )
if __name__ == ' _ _ main _ _ ' :
	n = 3
	print ( n , " th ▁ Centered ▁ cube ▁ " + " number ▁ : ▁ " , centered_cube ( n ) )
	n = 10
	print ( n , " th ▁ Centered ▁ cube ▁ " + " number ▁ : ▁ " , centered_cube ( n ) )