human
Find maximum N such that the sum of square of first N natural numbers is not more than X | Function to return the sum of the squares of first N natural numbers.
Function to return the maximum N such that the sum of the squares of first N natural numbers is not more than X.
Driver code"
Solution in Python:

=====
What is a code to find maximum N such that the sum of square of first N natural numbers is not more than X and the other steps required?
assistant
#Here is code to find maximum N such that the sum of square of first N natural numbers is not more than X and the other steps required.
 def squareSum ( N ) :
	Sum = ( N * ( N + 1 ) * ( 2 * N + 1 ) ) // 6
	return Sum
def findMaxN ( X ) :
	low , high , N = 1 , 100000 , 0
	while low <= high :
		mid = ( high + low ) // 2
		if squareSum ( mid ) <= X :
			N = mid
			low = mid + 1
		else :
			high = mid - 1
	return N
if __name__ == " _ _ main _ _ " :
	X = 25
	print ( findMaxN ( X ) )