human
Find the sum of the first Nth Centered Pentadecagonal Number | Function to find the Centered_Pentadecagonal number.
Formula to calculate N - th Centered_Pentadecagonal number.
Function to find the sum of the first N Centered_Pentadecagonal numbers.
Variable to store the sum.
Driver code"
Solution in Python:
assistant
#Here is code to find the sum of the first Nth Centered Pentadecagonal Number and the other steps required.
 def Centered_Pentadecagonal_num ( n ) :
	return ( 15 * n * n - 15 * n + 2 ) // 2
def sum_Centered_Pentadecagonal_num ( n ) :
	summ = 0
	for i in range ( 1 , n + 1 ) :
		summ += Centered_Pentadecagonal_num ( i )
	return summ
if __name__ == ' _ _ main _ _ ' :
	n = 5
	print ( sum_Centered_Pentadecagonal_num ( n ) )