human
Find the sum of first N terms of the series 2 * 3 * 5 , 3 * 5 * 7 , 4 * 7 * 9 , ... | Function to return the sum of the first n terms of the given series.
As described in the approach.
Driver Code"
How can the above be solved in Python?

Give me a code to find the sum of first N terms of the series 2 * 3 * 5 , 3 * 5 * 7 , 4 * 7 * 9 ,?
assistant
#Here is code to find the sum of first N terms of the series 2 * 3 * 5 , 3 * 5 * 7 , 4 * 7 * 9 , .
 def calSum ( n ) :
	return ( n * ( 2 * n * n * n + 12 * n * n + 25 * n + 21 ) ) / 2 ;
n = 3
print ( calSum ( n ) )