OFFSET
1,1
COMMENTS
xy/(x+y) is the side of the inscribed square of a right triangle with integer legs x and y.
The number of repetitions of x is the number of divisors of x^2 that are at most x/2. - Robert Israel, May 25 2025
LINKS
Robert Israel, Table of n, a(n) for n = 1..10010
EXAMPLE
For x = 6 there are 3 possible y, namely 6, 12 and 30, with 6*6/(6+6) = 3, 6*12/(6+12) = 4 and 6*30/(6+30) = 5, so 6 occurs 3 times in the sequence. - Robert Israel, May 28 2025
MAPLE
f:= n -> nops(select(`<=`, numtheory:-divisors(n^2), n/2)):
seq(n$f(n), n=1..30); # Robert Israel, May 25 2025
PROG
(PARI) xydivxpy(n) = { for(x=1, n, for(y=x, n, h=x*y/(x+y); if(h==floor(h), print1(x", "); ) ) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Dec 02 2003, corrected Nov 23 2006
EXTENSIONS
Definition corrected by Robert Israel, May 25 2025
STATUS
approved
