58
N5. An integer n is said to be good if |n| is not the square of an integer. Determine all
integers m with the following property:
m can be represented, in infinitely many ways, as a sum of three distinct good
integers whose product is the square of an odd integer.
Solution. Assume that m is expressed as m = u +v + w and uvw is an odd perfect square.
Then u, v, w are odd and because uvw ≡ 1 (mod 4), exactly two or none of them are
congruent to 3 modulo 4. In both cases, we have m = u + v + w ≡ 3 (mod 4).
Conversely, we prove that 4k + 3 has the required property. To prove this, we look for
representations of the form
4k + 3 = xy + yz + zx.
In any such representations, the product of the three summands is a perfect square. Setting
x = 1 + 2l and y = 1 − 2l, we have z = 2l
2
+ 2k + 1 from above. Then
xy = 1 − 4l
2
= f(l),
yz = −4l
3
+ 2l
2
− (4k + 2)l + 2k + 1 = g(l),
zx = 4l
3
+ 2l
2
+ (4k + 2)l + 2k + 1 = h(l).
The numbers f(l), g(l), h(l) are odd for each integer l and their product is a perfect square,
as noted above. They are distinct, except for finitely many l. It remains to note that |g(l)|
and |h(l)| are not perfect squares for infinitely many l (note that |f(l)| is not a p erfect square,
unless l = 0).
Choose distinct prime numbers p, q such that p, q > 4k + 3 and pick l such that
1 + 2l ≡ 0 (mod p), 1 + 2l 6≡ 0 (mod p
2
),
1 − 2l ≡ 0 (mod q), 1 − 2l 6≡ 0 (mod q
2
).
We can choose such l by the Chinese remainder theorem. Then 2l
2
+ 2k + 1 is not divisible
by p, because p > 4k + 3. Hence |h(l)| is not a perfect square. Similarly, |g(l)| is not a
perfect square.