
Isaac D. answered 03/17/20
Master's degree in pure math and multi-language functional programmer
The nice thing about questions like this is we can quickly get an upper bound on the possible values of x and y. We're only looking for whole number solutions and we know y2 ≥ 0 for any natural number y (of course, the same applies to x2). This tells us that x2 = x2 + 0 ≤ x2 + y2 = 72 (because 0 ≤ y2) which simply says that x ≤ √72 < 9. Now we can just test these values of x (of course, these bounds also hold for y). The only other thing to keep in mind is that we can exploit symmetry in this problem, i.e. if (a, b) is a solution (that is, x = a, y = b, which is to say a2 + b2 = 72), then it is also the case that (b, a) is a solution (that is, x = b, y= a).
I hope this helps!
Gabrielius T.
Thank you.03/19/20