OFFSET
1,3
COMMENTS
LINKS
Eric Weisstein's World of Mathematics, Acute Triangle.
Eric Weisstein's World of Mathematics, Right Triangle.
Eric Weisstein's World of Mathematics, Obtuse Triangle.
R. Zumkeller, Integer-sided triangles
MATHEMATICA
maxPer = m = 22;
sides[per_] := Select[Reverse /@ IntegerPartitions[per, {3}, Range[Ceiling[ per/2]]], #[[1]] < per/2 && #[[2]] < per/2 && #[[3]] < per/2&];
triangles = DeleteCases[Table[sides[per], {per, 3, m}], {}] // Flatten[#, 1]& // SortBy[Total[#] m^3 + #[[1]] m^2 + #[[2]] m + #[[1]]&];
#[[1]]^2 + #[[2]]^2 - #[[3]]^2& /@ triangles (* Jean-François Alcover, Jul 31 2018 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, May 05 2002
STATUS
approved