Two Sums of Two Squares

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:

1729 = 1 3 + 1 2 3 = 9 3 + 1 0 3 1729 = 1^3 + 12^3 = 9^3 + 10^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?


The answer is 65.

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.

2 solutions

Suppose such natural number n = a 2 + b 2 = c 2 + d 2 n = a^2 + b^2 = c^2 + d^2 , where a , b , c , d a, b, c, d are some natural numbers.

Then a 2 c 2 = d 2 b 2 a^2 - c^2 = d^2 - b^2

Thus, ( a c ) ( a + c ) = ( d b ) ( d + b ) (a - c)(a + c) = (d - b)(d + b)

The difference between the factors on the left hand side is 2 c 2c 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 1\times 3 . However, 3 3 is prime and has no other composite factorization.

Then we move to 2 × 4 = 1 × 8 2\times 4 = 1\times 8 . However, with 1 1 odd and 8 8 even, the difference 7 7 can never be even.

Finally, for 3 × 5 = 1 × 15 3\times 5 = 1\times 15 , we can set two sets of equations:

a c = 3 ; a + c = 5 a - c = 3 ; a + c = 5 a = 4 ; c = 1 a = 4 ; c = 1 d b = 1 ; d + b = 15 d - b = 1 ; d + b = 15 d = 8 ; b = 7 d = 8 ; b = 7

Hence, 4 2 1 2 = 8 2 7 2 4^2 - 1^2 = 8^2 - 7^2 .

n = 4 2 + 7 2 = 8 2 + 1 2 = 65 n = 4^2 + 7^2 = 8^2 + 1^2 = \boxed{65}

Moderator note:

This solution is correct, but it doesn't show the show / explain the underlying mathematical ideas.

For a general n 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 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 ) . (ac + bd)^2 + (bc - ad)^2 = (bc + ad)^2 + (ac - bd)^2 = (a^2 + b^2)(c^2 + d^2). We must have a b a \not = b and c d c \not = d to make the values really different.

We also want a a and b b to have opposite parity (even and odd). Otherwise, a 2 + b 2 = 2 [ ( a + b 2 ) 2 + ( a b 2 ) 2 ] a^2 + b^2 = 2 \cdot \left[\left(\frac{a+b}2\right)^2 + \left(\frac{a-b}2\right)^2\right] 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 a = 3, b = 2 and c = 2 , d = 1 c = 2, d = 1 , giving 13 5 = 65 = 8 2 + 1 2 = 7 2 + 4 2 . 13 \cdot 5 = \boxed{65} = 8^2 + 1^2 = 7^2 + 4^2.

For those who like to see this principle at work a little more:

a b c d 3 2 2 1 65 = 8 2 + 1 2 = 7 2 + 4 2 = 13 5 4 1 2 1 85 = 6 2 + 7 2 = 9 2 + 4 2 = 17 5 5 2 2 1 145 = 1 2 2 + 1 2 = 9 2 + 8 2 = 29 5 6 1 2 1 185 = 1 3 2 + 4 2 = 8 2 + 1 1 2 = 37 5 5 4 2 1 205 = 1 4 2 + 3 2 = 1 3 2 + 6 2 = 41 5 4 1 3 2 221 = 1 4 2 + 5 2 = 1 1 2 + 1 0 2 = 17 13 \begin{array}{cc|cc||rlll} a & b & c & d & \\ \hline 3 & 2 & 2 & 1 & 65 & = 8^2 + 1^2 & = 7^2 + 4^2 & = 13 \cdot 5 \\ 4 & 1 & 2 & 1 & 85 & = 6^2 + 7^2 & = 9^2 + 4^2 & = 17 \cdot 5 \\ 5 & 2 & 2 & 1 & 145 & = 12^2 + 1^2 & = 9^2 + 8^2 & = 29 \cdot 5 \\ 6 & 1 & 2 & 1 & 185 & = 13^2 + 4^2 & = 8^2 + 11^2 & = 37 \cdot 5 \\ 5 & 4 & 2 & 1 & 205 & = 14^2 + 3^2 & = 13^2 + 6^2 & = 41 \cdot 5 \\ 4 & 1 & 3 & 2 & 221 & = 14^2 + 5^2 & = 11^2 + 10^2 & = 17 \cdot 13 \\ \end{array}

Moderator note:

The first line is not immediately obvious.

If we have N = W 2 + X 2 = Y 2 + Z 2 N = W^2 + X^2 = Y^2 + Z^2 , how can you guarantee that we can solve for 4 integers a , b , c , d 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.

Ankan Dutta - 5 years, 1 month ago

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 50 = 5 2 + 5 2 = 1 2 + 7 2 50 = 5^2 + 5^2 = 1^2 + 7^2 is related to 25 = ( 5 + 5 2 ) 2 + ( 5 5 2 ) 2 = 5 2 + 0 2 ; 25 = ( 7 + 1 2 ) 2 + ( 7 1 2 ) 2 = 4 2 + 3 2 . 25 = \left(\frac{5+5}2\right)^2 + \left(\frac{5-5}2\right)^2 = 5^2 + 0^2; \\ 25 = \left(\frac{7+1}2\right)^2 + \left(\frac{7-1}2\right)^2 = 4^2 + 3^2. -- which would have been a valid solution if the problem had not required positive values.

Arjen Vreugdenhil - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...