Obviously this equation will give an integer value of n if and only if the quantity inside the square root is a square, so there must be an integer q such that
Obviously this equation will give an integer value of n if and only if the quantity inside the square root is a square, so there must be an integer q such that