Denote the integers by x−y,x,x+y; and let
2x−y=p2,2x=q2,2x+y=r2;
then p2+r2=2q2,
or r2−q2=q2−p2.
This equation is satisfied by the suppositions,
m(r−q)=n(q−p), n(r+q)=m(q+p),
where m and n are positive integers.
From these equations we obtain by cross multiplication
pn2+2mn−m2=qm2+n2=rm2+2mn−n2.
Hence we may take for the general solution
p=n2+2mn−m2, q=m2+n2, r=m2+2mn−n2;
whence x=12(m2+n2)2, y=4mn(m2−n2),
and the three integers can be found.
From the value of x it is clear that m and n are either both even or both odd; also their values must be such that x is greater than y, that is,
(m2+n2)2>8mn(m2−n2),
or m3(m−8n)+2m2n2+8mn3+n4>0;
which condition is satisfied if m>8n.
If m=9, n=1, then x=3362, y=2880, and the numbers are 482, 3362, 6242. The sums of these taken in pairs are 3844, 6724, 9604, which are the squares of 62, 82, 98 respectively.