Take m^2 = largest square not exceeding n. Then
n + m = (m + 1)^2 + (n - m^2 - m - 1)
so that the right hand side of the equation is equal to m or m+1 according as to whether
n < m^2 + m + 1
But the left hand side of the equation is equal to m or m+1 according as to whether
n < (m + 1/2)^2 = m^2 + m + 1/4
As n, m are integers, these conditions are equivalent.
Comments: (
You must be logged in to post comments.)