How to find the integral solutions of $$\ x^2 + y^2 =2z^2$$ such that x,y are distinct and $$z^2 < 2(min(x,y))^2$$
This can be reduced to $$a^2 + b^2 = 2$$ such that a,b are rational numbers.