Hello Victor,
a2 + b2 - 2ab = 0
→ (a - b)2 = 0
→ a = b.
But a > b, so they can't be the same, and so we can't solve it with that method.
I know you said you found the answer, but just wondering if your method matches mine below, or if you did something differently.
Given: a2 + b2 = 202
Note that b = the first consecutive odd integer, since a > b, and so
a = the second consecutive odd integer.
Then a = b + 2
→ (b + 2)2 + b2 = 202
→ b2 + 4b + 4 + b2 = 202
→ 2b2 + 4b - 198 = 0
→ b2 + 2b - 99 = 0
→ (b + 11)(b - 9) = 0
→ b = -11 or b = 9
Since it is given that b > 0
→ b = 9
→ a = 11
→ ab = 99.
Thank you for posting the question.
Michael Ehlers