human
Can you provide a code to sum of the series 1 given the following:
Sum of the series 1.2 . 3 + 2.3 . 4 + ... + n ( n + 1 ) ( n + 2 ) | Python 3 program to find sum of the series 1.2 . 3 + 2.3 . 4 + 3.4 . 5 + ....
Driver Program"
Solution in Python:
assistant
#Here is code to sum of the series 1.
 def sumofseries ( n ) :
	res = 0
	for i in range ( 1 , n + 1 ) :
		res += ( i ) * ( i + 1 ) * ( i + 2 )
	return res
print ( sumofseries ( 3 ) )