HF RL Explorer

Task 251

Task 251: test task in emrekuruu/math-openenv, an RL environment on the Hugging Face Hub. There exist nonzero integers $a$ and $b$ such that the quadratic \ (ax - b)^2 + (bx - a)^2 = x\ has one integer root and one non-integer root. Find the non-integer root.

The task

There exist nonzero integers $a$ and $b$ such that the quadratic \[(ax - b)^2 + (bx - a)^2 = x\]has one integer root and one non-integer root. Find the non-integer root.