human
n | Function to print nth term of series.
Driver code"
Solution in Python:
 What is a code to n and the other steps required?
assistant
#Here is code to n and the other steps required.
 def sumOfSeries ( n ) :
	return n * ( n + 1 ) * ( 6 * n * n * n + 9 * n * n + n - 1 ) / 30
n = 4
print sumOfSeries ( n )