human
Find n | func for calualtion.
for summation of square of first n - natural nos ..
summation of first n natural nos ..
return result.
Driver Code"
How can the above be solved in Python?
 ... Write me a code to find n and the other steps required?
assistant
#Here is code to find n and the other steps required.
 def seriesFunc ( n ) :
	sumSquare = ( n * ( n + 1 ) * ( 2 * n + 1 ) ) / 6
	sumNatural = ( n * ( n + 1 ) / 2 )
	return ( sumSquare + sumNatural + 1 )
n = 8
print ( int ( seriesFunc ( n ) ) )
n = 13
print ( int ( seriesFunc ( n ) ) )