


a² + b² = 613
We see if (a,b,613) is a Pythagorean triple
 
let b = 613-k
a² + (613-k)² = 613²
a² + 613² -1226k + k² = 613²
a² - 1226k + k² = 0
We notice that  So the largest square not exceeding 1226 is 35² = 1225
So we write 1226 = 35² + 1
a² - (35²+1)k + k² = 0
a² = (35²+1)k - k² 
a² = 35²k + k - k²
We see that if k=1 the right side becomes 352
Therefore k=1, and b = 613-k = 613-1 = 612, and a=35
Therefore (a,b,613) = (35,612,613) is a Pythagorean triple.
Thus a+b = 35+612 = 647
Edwin
So the largest square not exceeding 1226 is 35² = 1225
So we write 1226 = 35² + 1
a² - (35²+1)k + k² = 0
a² = (35²+1)k - k² 
a² = 35²k + k - k²
We see that if k=1 the right side becomes 352
Therefore k=1, and b = 613-k = 613-1 = 612, and a=35
Therefore (a,b,613) = (35,612,613) is a Pythagorean triple.
Thus a+b = 35+612 = 647
Edwin