Peter wrote:
The positive integers

and

are such that the numbers

and

are both squares of positive integers. What is the least possible value that can be taken on by the smaller of these two squares?
We characterize the set
Let

. We can find positive integers

and

such that

and

. After solving the system of equations

,

, we obtain
Now, we have to work modulo

and modulo

.
Step 1. First, we work modulo

. We need to solve the system of congruences
The first equation reads

or

. The second equation reads

or

. We apply
Gauss Elimination. We compute

or

. This implies that

. Also, we find that

so that

. We conclude that

is the unique solution of the system of congruences.
\textsc{Step 2.} Second, we work modulo

. We need to solve the system of congruences
The first equation reads

or

. The second equation reads

or

. Hence, we compute

or

. This implies that

. Also, we find that

so that

. We conclude that

is the unique solution of the system of congruences.
Combining results from
Step 1 and
Step 2, we can write

and

for some positive integers

and

. Now, observe that
becomes
or
Hence, it follows that the set

can be represented as
We therefore conclude that the minimum value is

.
Notes
In the solution, we met the systems of congruences. We recall the congruences from
Step 1:

,

. There are many alternative ways to reach

.
Method 1. One may use Brahmagupta-Fibonacci Identity:
Indeed, we obtain
Since

, we find that

is divisibly by

. We now apply the following result with

to conclude that

.
Proposition. Let

be a prime with

. Suppose that

is divisible by

for some integers

and

. Then, both

and

are divisible by

.
Proof. Assume to the contrary that at least one of them are not divisible by

. Since

divides

, we see that none of them are divisible by

. Fermat's Little Theorem yields that

. Since

or since

is odd, we have

. Since

divides

, we obtain
Raise both sides of the congruence to the power

to obtain
or
This is a contradiction because

is an odd prime. Therefore, both

and

are divisible by

.
Method 2. We now work on the field

. (Since

is prime, we know that the ring

is a field. We identify

with

.) The above congruences become
Of course,
Gauss Elimination works. However, we offer an alternative way. Observe that
This implies that
![\left[\begin{array}{cc}x^{2} & y^{2} \\
- y^{2} & x^{2}\end{array}\right]](http://data.artofproblemsolving.com/images/latex/c/8/b/c8b88ea415cd7c37223bd103415bdebe84aaa382.gif)
has zero determinant so that

. We compute
If

, then we also have

. Hence, we obtain

, which is a contradiction. Therefore, we get

and so

.