human
Program to find sum of series 1 * 2 * 3 + 2 * 3 * 4 + 3 * 4 * 5 + . . . + n * ( n + 1 ) * ( n + 2 ) | Function to calculate sum of series ..
Driver code"
How can the above be solved in Python?
 ... Give me a code to program to find sum of series 1 * 2 * 3 + 2 * 3 * 4 + 3 * 4 * 5 +?
assistant
#Here is code to program to find sum of series 1 * 2 * 3 + 2 * 3 * 4 + 3 * 4 * 5 + .
 def sumOfSeries ( n ) :
	sum = 0 ;
	i = 1 ;
	while i <= n :
		sum = sum + i * ( i + 1 ) * ( i + 2 )
		i = i + 1
	return sum
n = 10
print ( sumOfSeries ( n ) )