A335035 Ordered perimeters of primitive integer triangles with two perpendicular medians.
54, 70, 104, 154, 170, 216, 252, 266, 352, 368, 418, 442, 464, 594, 598, 620, 638, 720, 740, 748, 792, 810, 902, 952, 962, 988, 1054, 1102, 1118, 1134, 1148, 1170, 1216, 1274, 1316, 1376, 1426, 1484, 1512, 1564, 1568, 1598, 1600, 1638, 1702, 1710, 1802, 1836, 1862
Offset: 1
Keywords
Examples
a(1) = 13 + 19 + 22 = 54 with 19^2 + 22^2 = 5 * 13^2 = 845.
Links
- Annales Concours Général, Sujet Concours Général 2007
- Maths Challenge, Perpendicular medians, Problem with picture.
Crossrefs
Programs
-
PARI
lista(nn) = {my(vm = List(), vt); for (u=1, nn, for (v=1, nn, if (gcd(u, v) == 1, vt = 0; if ((u/v > 3) && ((u-3*v) % 5), vt = [2*(u^2-u*v-v^2), u^2+4*u*v-v^2, u^2+v^2]); if ((u/v > 1) && (u/v < 2) && ((u-2*v) % 5), vt = [2*(u^2+u*v-v^2), -u^2+4*u*v+v^2, u^2+v^2]); if ((gcd(vt) == 1), listput(vm, vecsum(vt)));););); vecsort(vm);} \\ Michel Marcus, May 27 2020
Comments