human
Write me 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 ) | function to calculate sum of series.
Driver program"
Solution in Python:
assistant
#Here is code to sum of the series 1.
 def sumofseries ( n ) :
	return int ( n * ( n + 1 ) * ( n + 2 ) * ( n + 3 ) / 4 )
print ( sumofseries ( 3 ) )