and are five-digit perfect squares, which only differ from each other in that their first and last digits have been interchanged.
It is easy to find more examples of this type:
How many more pairs of such five-digit perfect squares are there (other than the above 3 pairs)?
For a four-digit version, see this problem .
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.
Let the two squares be 1 0 0 0 0 ≤ M 2 < N 2 ≤ 9 9 9 9 9 . We conclude immediately that 1 0 0 ≤ M , N ≤ 3 1 6 ; { 2 0 0 ≤ N + M ≤ 6 3 2 N − M ≤ 2 1 6 Now let a and e be the first and last digit of N ; then N 2 − M 2 = 1 0 0 0 0 ( a − e ) + ( e − a ) = 9 9 9 9 ( a − e ) = : 9 9 9 9 h . Using the factorization 9 9 9 9 = 3 2 ⋅ 1 1 ⋅ 1 0 1 , we conclude that ( N + M ) ( N − M ) = 3 2 ⋅ 1 1 ⋅ 1 0 1 ⋅ h with h = 1 , … , 8 . Answers to the problem must be found among solutions of this equation. Note also that N + M and N − M must have the same parity (odd or even). If they are both even, we necessarily have h = 4 or 8 .
The prime factor 1 0 1 must be either a divisor of N + M or of N − M .
Case 1. 1 0 1 is a divisor of N + M . This implies N + M = 2 0 2 , 3 0 3 , 4 0 4 , 5 0 5 , or 6 0 6 .
If N + M = 3 0 3 or 6 0 6 , then we see that 3 ⋅ 1 1 = 3 3 must be a divisor of N − M . Knowing that N − M ≤ 2 1 6 and that N + M and N − M have the same parity, this leaves the following possibilities:
N + M 3 0 3 3 0 3 3 0 3 6 0 6 6 0 6 6 0 6 N − M 3 3 9 9 1 6 5 6 6 1 3 2 1 9 8 N 1 6 8 2 0 1 2 3 4 3 3 6 M 1 3 5 1 0 2 6 9 … N 2 2 8 2 2 4 4 0 4 0 1 … … M 2 1 8 2 2 5 1 0 4 0 4 … … no match SOLUTION (already known) M too small N too large idem idem
If N + M is another multiple of 1 0 1 , we conclude that 3 2 ⋅ 1 1 = 9 9 must be a divisor of N − M . This means that N − M = 9 9 if N + M is odd, and 1 9 8 if N + M is even.
N + M 2 0 2 4 0 4 5 0 5 N − M 1 9 8 1 9 8 9 9 N … 3 0 1 3 0 2 M 2 1 0 3 2 0 3 N 2 … 9 0 6 0 1 9 1 2 0 4 M 2 … 1 0 6 0 9 4 1 2 0 9 M too small SOLUTION (already known) SOLUTION (already known)
Case 2. 1 0 1 is a divisor of N − M . This implies N − M = 1 0 1 or 2 0 2 . It follows that 3 2 ⋅ 1 1 = 9 9 is a divisor of N + M . This gives the following possibilities:
N + M 2 9 7 3 9 6 4 9 5 5 9 4 N − M 1 0 1 2 0 2 1 0 1 2 0 2 N 1 9 9 2 9 9 2 9 8 3 9 8 M 9 8 9 7 1 9 7 … N 2 … … 8 8 8 0 4 … M 2 … … 3 8 8 0 9 … M too small M too small no match N too large
Conclusion. Beyond the three solution already shown in the problem, we found no other pairs of five-digit perfect squares with this property.