It's a shame you gave up and went fishing. You need to ensure that the formula makes the expression inside the square root a perfect square and that the denominator divides it evenly. This guarantees that the final value of Y is an integer.
Now, I have no idea what exactly you meant or were trying to do here. Give up on using AI—it's bugging out badly
