This has something to with quadratic equations

If n is a perfect square, then the square root of n is an integer. For example, if n = 36, then the square root of n = 6. The next perfect square then is:

(√n + 1)

^{2}Staying with the example of n = 36, the square root of n = 6, and the expression yields:

(√36 + 1)

^{2}= (6 + 1)^{2}= 7^{2}= 49