human
Find the sum of the first Nth Centered Tridecagonal Numbers | Function to calculate the N - th Centered tridecagonal number.
Formula to calculate Nth Centered tridecagonal number & return it.
Function to find the sum of the first N Centered tridecagonal numbers.
Variable to store the sum.
Loop to iterate and find the sum of first N Centered tridecagonal numbers.
Driver Code"
Solution in Python:
assistant
#Here is code to find the sum of the first Nth Centered Tridecagonal Numbers and the other steps required.
 def Centered_tridecagonal_num ( n ) :
	return ( 13 * n * ( n - 1 ) + 2 ) // 2
def sum_Centered_tridecagonal_num ( n ) :
	summ = 0
	for i in range ( 1 , n + 1 ) :
		summ += Centered_tridecagonal_num ( i )
	return summ
if __name__ == ' _ _ main _ _ ' :
	n = 5
	print ( sum_Centered_tridecagonal_num ( n ) )