OFFSET
0,1
COMMENTS
Each even integer y >= 4 occurs A056924(y/2) times. - Robert Israel, Dec 10 2017
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(y $ nops(select(t -> (t^2 < y/2), numtheory:-divisors(y/2))), y=2..100, 2); # Robert Israel, Dec 10 2017
MATHEMATICA
Table[Table[y, {Select[Divisors[y/2], #^2 < y/2&] // Length}], {y, 2, 100, 2}] // Flatten (* Jean-François Alcover, Feb 28 2019, after Robert Israel *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, May 01 2001
EXTENSIONS
Definition clarified by Robert Israel, Dec 10 2017
STATUS
approved