A339860 Perimeter of primitive integer-sided triangles whose sides a < b < c form a geometric progression.
19, 37, 61, 91, 109, 129, 127, 169, 193, 219, 247, 217, 273, 271, 301, 367, 403, 331, 399, 397, 433, 471, 511, 553, 597, 469, 637, 733, 547, 589, 633, 679, 727, 777, 829, 883, 631, 723, 823, 721, 769, 871, 1039, 1099, 817, 921, 1033, 1153, 1281, 919, 973, 1029, 1087
Offset: 1
Keywords
Examples
a(1) = 19 = 4+6+9 for the smallest such triangle (4, 6, 9) with 4 * 9 = 6^2 and a ratio q = 3/2. a(2) = 37 = 9+12+16 for the triple (9, 12, 16) with 9 * 16 = 12^2 and a ratio q = 4/3.
Links
- Project Euler, Problem 370: Geometric triangles.
Crossrefs
Programs
-
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(a+b+c); end if; end do; end do; end do;
-
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(a+b+c, ", ")); ); ); ); } \\ Michel Marcus, Jan 08 2021
Comments