This is a proof based problem added for learning purposes and does not accept submissions.
You can view the solution by clicking on the solution tab.
You can view the solution by clicking on the solution tab.
Editorial
Need a hint? Checkout the editorial.
View Editorial
Editorial
When given an equation like $x^2+y=z^2$ and asked to solve for integer values, a common technique is to bound the left-hand side (LHS) using inequalities of the form $(x+i)^2 \leq LHS \leq (x+j)^2$, where $i$ and $j$ are integers. This approach helps to restrict the possible values of $x,y$ and $z$, making it easier to identify integer solutions by narrowing the search space.