Find integers A and B such that A^2 +B^2 = 8585

  • Thread starter Thread starter ptolema
  • Start date Start date
  • Tags Tags
    Integers
ptolema
Messages
82
Reaction score
0

Homework Statement



Find integers A and B such that A2 +B2 = 8585


Homework Equations





The Attempt at a Solution


So in this case, I already know the answer:
Sum of 2 squares: 8585 = 67^2 + 64^2 = 76^2 + 53^2 = 88^2 + 29^2 = 92^2 + 11^2.
I started off looking at the graph of the circle A2 +B2 = 8585. My problem was trying to limit my possible solutions to integers.
Is there is any kind of method/algorithm for expressing a number as a sum of squares? I haven't really seen it as commonly as I do the difference of squares.
 
Physics news on Phys.org
The set of numbers which are the sum of two squares is closed under multiplication. (This can easily be seen by considering the moduli of complex integers.) So a good place to start is to factorise the target. If all its factors are sums of two squares, then solve those individually. Can you figure out from my hint how to recombine them?
 
Check here if you need more inspiration.
 
I see now. So 5, 17, and 101 are the factors of 8585. 5=2^2 + 1^2, 17=4^2 + 1^2, and 101=10^2 + 1^2. Using the Brahmagupta-Fibonacci identity yields the results shown.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top