OFFSET
1,1
COMMENTS
The triples of sides (a, b, c) with a < b < c are in increasing lexicographic order. This sequence lists the c's.
For the corresponding primitive triples and miscellaneous properties and references, see A339856.
The terms are all squares >= 9 but they are not in increasing order. For example, a(6) = 64 for triple (25, 40, 64) while a(7) = 49 for triple (36, 42, 49).
LINKS
Project Euler, Problem 370: Geometric triangles.
FORMULA
a(n) = A339856(n, 3).
EXAMPLE
a(1) = 9 for only the smallest such triangle (4, 6, 9) with 6^2 = 4*9, this one corresponds to an obtuse triangle because sqrt(phi) < q = 3/2 < phi, hence C > Pi/2.
a(3) = 25 for only the triple (16, 20, 25) with 16 * 25 = 20^2, this one corresponds to an acute triangle because 1 < q = 5/4 < sqrt(phi), hence C < Pi/2.
MAPLE
for a from 1 to 300 do
for b from a+1 to floor((1+sqrt(5))/2 *a) do
for c from b+1 to floor((1+sqrt(5))/2 *b) do k:=a*c;
if k=b^2 and igcd(a, b, c)=1 then print(c); end if;
end do;
end do;
end do;
PROG
(PARI) lista(nn) = {my(phi = (1+sqrt(5))/2); for (a=1, nn, for (b=a+1, floor(a*phi), for (c=b+1, floor(b*phi), if ((a*c == b^2) && (gcd([a, b, c])==1), print1(c, ", "); ); ); ); ); } \\ Michel Marcus, Jan 07 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, Jan 05 2021
STATUS
approved
