OFFSET
0,1
REFERENCES
Donald D. Spencer, Computers in Number Theory, Computer Science Press, Rockville MD, 1982, pp. 130-131.
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
FORMULA
The solutions are given by x = r^2 + 2*r*k + 2*k^2, y = 2*k*(k+r) with r >= 1, k >= 1. - N. J. A. Sloane, May 02 2001
EXAMPLE
Pairs are [5, 4], [10, 6], [17, 8], [26, 10], [13, 12], [37, 12], [50, 14], ... For example, 5-4 = 1^2, 5+4 = 3^2.
MAPLE
seq(op(sort(map(k -> (k^2 + (y/2/k)^2), select(t -> t^2 < y/2, convert(numtheory:-divisors(y/2), list))))), y=2..100, 2); # Robert Israel, Dec 10 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, May 01 2001
EXTENSIONS
Definition clarified by Robert Israel, Dec 10 2017
STATUS
approved