The number 1729 is also known as Hardy- Ramanujan number, or the least natural number that can be expressed as the sum of two cubes in two different ways:
1 7 2 9 = 1 3 + 1 2 3 = 9 3 + 1 0 3
Then what is the least natural number that can be expressed as the sum of two squares of different natural numbers in two different ways?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This solution is correct, but it doesn't show the show / explain the underlying mathematical ideas.
For a general n , do you know how many ways it can be written as the sum of 2 squares?
Hint: The answer can be expressed in terms of the prime factorization of n . Think about Gaussian Integers.
If a number can be written as the sum of two squares in two different ways, it is of the form ( a c + b d ) 2 + ( b c − a d ) 2 = ( b c + a d ) 2 + ( a c − b d ) 2 = ( a 2 + b 2 ) ( c 2 + d 2 ) . We must have a = b and c = d to make the values really different.
We also want a and b to have opposite parity (even and odd). Otherwise, a 2 + b 2 = 2 ⋅ [ ( 2 a + b ) 2 + ( 2 a − b ) 2 ] will immediately give us a smaller pair of squares to work with.
The lowest values for which all of this works are a = 3 , b = 2 and c = 2 , d = 1 , giving 1 3 ⋅ 5 = 6 5 = 8 2 + 1 2 = 7 2 + 4 2 .
For those who like to see this principle at work a little more:
a 3 4 5 6 5 4 b 2 1 2 1 4 1 c 2 2 2 2 2 3 d 1 1 1 1 1 2 6 5 8 5 1 4 5 1 8 5 2 0 5 2 2 1 = 8 2 + 1 2 = 6 2 + 7 2 = 1 2 2 + 1 2 = 1 3 2 + 4 2 = 1 4 2 + 3 2 = 1 4 2 + 5 2 = 7 2 + 4 2 = 9 2 + 4 2 = 9 2 + 8 2 = 8 2 + 1 1 2 = 1 3 2 + 6 2 = 1 1 2 + 1 0 2 = 1 3 ⋅ 5 = 1 7 ⋅ 5 = 2 9 ⋅ 5 = 3 7 ⋅ 5 = 4 1 ⋅ 5 = 1 7 ⋅ 1 3
The first line is not immediately obvious.
If we have N = W 2 + X 2 = Y 2 + Z 2 , how can you guarantee that we can solve for 4 integers a , b , c , d ?
Wrong 50 is the least 1^2 + 7^2 = 5^2+5^2. (b-c)(b+c)=(d-a)(d+a) if we pair (4, 6) and (2, 12).. we get above answer.
Log in to reply
The problem requires that we find sums of different squares.
This solution did not show up because I limited myself to numbers with opposite parity. In fact, the sum 5 0 = 5 2 + 5 2 = 1 2 + 7 2 is related to 2 5 = ( 2 5 + 5 ) 2 + ( 2 5 − 5 ) 2 = 5 2 + 0 2 ; 2 5 = ( 2 7 + 1 ) 2 + ( 2 7 − 1 ) 2 = 4 2 + 3 2 . -- which would have been a valid solution if the problem had not required positive values.
Problem Loading...
Note Loading...
Set Loading...
Suppose such natural number n = a 2 + b 2 = c 2 + d 2 , where a , b , c , d are some natural numbers.
Then a 2 − c 2 = d 2 − b 2
Thus, ( a − c ) ( a + c ) = ( d − b ) ( d + b )
The difference between the factors on the left hand side is 2 c and always even, so we can assure that these factors are either odd-odd or even-even. The same applies to the right hand side.
The smallest possible factors are 1 × 3 . However, 3 is prime and has no other composite factorization.
Then we move to 2 × 4 = 1 × 8 . However, with 1 odd and 8 even, the difference 7 can never be even.
Finally, for 3 × 5 = 1 × 1 5 , we can set two sets of equations:
a − c = 3 ; a + c = 5 a = 4 ; c = 1 d − b = 1 ; d + b = 1 5 d = 8 ; b = 7
Hence, 4 2 − 1 2 = 8 2 − 7 2 .
n = 4 2 + 7 2 = 8 2 + 1 2 = 6 5