What is the smallest perfect square that can be expressed as the sum of two positive perfect squares in two different ways?
Note : The order of summation doesn't matter.
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.
An integer n is expressible as the sum of two squares if and only if it is of the form n = A B 2 , where A is divisible only by primes not congruent to 3 m o d 4 and B is divisible only by primes congruent to 3 m o d 4 .
Writing A = 2 a p 1 a 1 ⋯ p k a k , the number of representations of n as a sum of two squares is r 2 ( n ) = 4 ( a 1 + 1 ) ( a 2 + 1 ) ( ⋯ ) ( a k + 1 ) . This formula (and the previous paragraph) comes from facts about Gaussian integers .
If n is a square and we want to write it as the sum of two positive squares in two essentially different ways, we'll want r 2 ( n ) ≥ 2 0 . This is because there are four ways to write n = k 2 + 0 2 = ( − k ) 2 + 0 2 = 0 2 + k 2 = 0 2 + ( − k ) 2 , none of which help us, and then an actual representation of n = a 2 + b 2 as a sum of two positive squares will give rise to eight different representations counted in r 2 ( n ) (by switching a and b and/or applying negative signs to one or both of them.)
So we want r 2 ( n ) ≥ 2 0 and all the a i even. Both a 1 = 4 and a 1 = a 2 = 2 will work, and any other choices will lead to larger numbers. The smallest example of the former is 5 4 = 6 2 5 , and the smallest example of the latter is ( 5 2 ⋅ 1 3 2 = 4 2 2 5 . So the answer is 6 2 5 . The two representations are 6 2 5 = 1 5 2 + 2 0 2 = 7 2 + 2 4 2 .